Relative Content

Tag Archive for graphql-java

Output Data validation with graphql java

Is there a way to validate the data [ apply some filters/rules on the resultset ] extracted in the repository layer by using grahpql?
For example, if the resultset is a List and for each Object, the validation to be applied are:

Should I create new Instance of GraphQL class for each executionInput?

I can see in javadoc of GraphQL class “Building this object is very cheap and can be done on each execution if necessary”. Should I create new GraphQL class instance each time for executing new ExecutionInput instance or can I use single instance? When it is necessary to create new instance?