Questions tagged [graphql-spqr]

GraphQL SPQR is a graphql-java based library for rapid development of GraphQL servers in Java, using the code-first approach. A question tagged with graphql-spqr should be related to GraphQL SPQR, either inquiring about its usage or features, or referring to its functionality directly in the supplied code.

GraphQL SPQR is a simple-to-use library for rapid development of GraphQL APIs in Java. It takes the code-first approach to GraphQL development, where the server-side code is written first and the GraphQL schema is generated from it.

GraphQL SPQR Spring Boot Starter uses the base GraphQL SPQR library to automatically expose the chosen Spring beans, configure a web end-point and optionally set up a subscription server.

83 questions
0
votes
1 answer

Access to protected field of parent object through child object via a query schema

I am using graphql-spqr So that I don't have to create schema.graphql files. I have a base class in which most of my other classes inherit from. For example @GraphQLInterface(name = "BaseResponse", implementationAutoDiscovery =…
DaviesTobi alex
  • 610
  • 1
  • 9
  • 34
0
votes
1 answer

Json to object deserialization issue in Graphql-spqr

Json to GraphQLArgumetn object conversion failing in graphql-spqr. tried adding GraphQLInterface(with autodiscovery true and scanpackage) to above abstract classes and GraphQLtype type all concrete classes. My graph query: query…
0
votes
1 answer

GraphQl Java, How can I blindly return all variables associated with an object from query and question on handling sub classes

I'm new to GraphQL and I'm currently implementing a GraphQL API into an established Java code, using GraphQL-SPQR and I'm running into a couple issues when it comes extracting data from hierarchical classes. The issues that I am running into are as…
John Duskin
  • 355
  • 5
  • 12
0
votes
1 answer

How to customize a serialization

I'm newbie with graphql and spqr. I would like to serialize my dates with personal format. How I can do it?
atoua
  • 31
  • 2
  • 10
0
votes
2 answers

Validation error of type SubSelectionRequired: Sub selection required for type Timestamp of field

I use GraphQL-SPQR Library The problem is "Validation error of type SubSelectionRequired: Sub selection required for type Timestamp" Maybe there is expression in query for timestamp or format in…
Sarah Son
  • 51
  • 1
  • 2
  • 7
0
votes
1 answer

How to use JSON Scalar in SPQR

I want to return a JSON literal in the service class @GraphQLQuery(name = "renderUI", description = "Schema for your form") public String renderUI() { String genratedSchema = "{" + " \"schema\": {" + " \"type\":…
kiran.kumar M
  • 811
  • 8
  • 25
0
votes
1 answer

Persisted queries in SPQR GraphQL

Does GraphQL-SPQR has support for PersistedQueries or not, if not what's the suggested way of handling persisted queries in SPQR.
0
votes
1 answer

GraphQL-SPQR - Error with List without generics

My GraphQL schema is: //Schema generated from query classes GraphQLSchema schema = new GraphQLSchemaGenerator() .withBasePackages("com.blah.blah") .withOperationBuilder(new…
Dan Goldberg
  • 1
  • 1
  • 1
1 2 3 4 5
6