Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unsupported TypeDefinition kind: INTERFACE #142

Open
hank-der-hafenarbeiter opened this issue Oct 8, 2024 · 0 comments
Open

Error: Unsupported TypeDefinition kind: INTERFACE #142

hank-der-hafenarbeiter opened this issue Oct 8, 2024 · 0 comments

Comments

@hank-der-hafenarbeiter
Copy link

hank-der-hafenarbeiter commented Oct 8, 2024

Hey everyone,

I've been trying to get this library to work with my PostGraphile server. PostGraphile generates a "Node" type though which can be any kind of entity in the database. purescript-graphql-clients code generator doesn't seem to like that.

file:///home/kevin/Projects/Gastflugplaner/graphile-purescript/client/node_modules/purescript-graphql-client/codegen/schema/write-purs-schema.mjs:23
    throw new Error(parseError)
          ^

Error: Unsupported TypeDefinition kind:

 INTERFACE
    at writePursSchemas (file:///home/kevin/Projects/Gastflugplaner/graphile-purescript/client/node_modules/purescript-graphql-client/codegen/schema/write-purs-schema.mjs:23:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async generateSchemas (file:///home/kevin/Projects/Gastflugplaner/graphile-purescript/client/node_modules/purescript-graphql-client/codegen/schema/index.mjs:19:10)

Node.js v20.12.2

I'm using fe24db5 of this library with spago 0.93.40.

The introspection query returns:
schama.json

I'd love to get this to work and I'd be willing to help where I can. I'm not that experienced with purescript thought

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant