@PublicApi public class AstSignature extends java.lang.Object
Constructor and Description |
---|
AstSignature() |
Modifier and Type | Method and Description |
---|---|
Document |
signatureQuery(Document document,
java.lang.String operationName)
This can produce a "signature" canonical AST that conforms to the algorithm as outlined
here
which removes excess operations, removes any field aliases, hides literal values and sorts the result into a canonical
query
|
public Document signatureQuery(Document document, java.lang.String operationName)
document
- the document to make a signature query fromoperationName
- the name of the operation to do it for (since only one query can be run at a time)