Replies: 2 comments 1 reply
-
if you want to fetch by id you can
|
Beta Was this translation helpful? Give feedback.
-
That could be a bug with the introspection schema I suspect its got something to do with the fact we have some behaviours that might not be considered strict GraphQL. For example we have the |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use graphjin as the API backend for a SvelteKit application using the houdini GraphQL client and am running into numerous problems with the generated GraphQL schema. The houdini client is rather strict about GraphQL schemas because it uses the schema for generating Typescript types and supporting JS code for SvelteKit.
I'm using graphjin in service mode via the
dosco/graphjin:latest
image and have defined the following table structure:and I try to query it with the following query:
I can run the query via graphiql interface of graphjin but it marks the query with an error:
Besides the error I can submit the query and graphjin responds without issues.
When I try the same with the houdini client though it fails because it detects that the query is not valid according to the schema and it aborts code generation.
Some other things I found:
Query.profiles
field can respond with both a list or a single item based on parameterization. In the schema the field is not define d as a list type thoughI'm starting to wonder if graphjin is just not a good fit to use with a client lib like houdini that does strict schema validation. Is there anything I could be doing differently or how are others dealing with it?
Beta Was this translation helpful? Give feedback.
All reactions