public class NoOpPreparsedDocumentProvider extends Object implements PreparsedDocumentProvider
Modifier and Type | Field and Description |
---|---|
static NoOpPreparsedDocumentProvider |
INSTANCE |
Constructor and Description |
---|
NoOpPreparsedDocumentProvider() |
Modifier and Type | Method and Description |
---|---|
PreparsedDocumentEntry |
get(String query,
Function<String,PreparsedDocumentEntry> compute)
This is called to get a "cached" pre-parsed query and if its not present, then the computeFunction
can be called to parse the query
|
public static final NoOpPreparsedDocumentProvider INSTANCE
public PreparsedDocumentEntry get(String query, Function<String,PreparsedDocumentEntry> compute)
PreparsedDocumentProvider
get
in interface PreparsedDocumentProvider
query
- The graphql querycompute
- If the query has not be pre-parsed, this function can be called to parse itPreparsedDocumentEntry
Copyright © 2019. All rights reserved.