Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Make sure it works with references. #23

Open
gklijs opened this issue May 13, 2021 · 1 comment
Open

Make sure it works with references. #23

gklijs opened this issue May 13, 2021 · 1 comment

Comments

@gklijs
Copy link

gklijs commented May 13, 2021

I have a demo setup where I use references, but it fails to configure the schema, likely because the same reference is used multiple times.
This is the error I get

Could not generate schemas: Schema must contain uniquely named types but contains multiple types named "ADDRESS".
(node:27) UnhandledPromiseRejectionWarning: Error: Error: Unable to create schemas and resolvers
    at /root/app/dist/node_modules/@confluentinc/ksqldb-graphql/src/schema.js:201:27
    at Generator.next (<anonymous>)
    at fulfilled (/root/app/dist/node_modules/@confluentinc/ksqldb-graphql/src/schema.js:5:58)

Demo can be found at https://github.com/gklijs/ksqlDB-GraphQL-poc you probably need to restart the js-graphql-endpoint container to see the error.

@gklijs gklijs changed the title Make sure it works with referenced. Make sure it works with references. May 13, 2021
@gklijs
Copy link
Author

gklijs commented May 29, 2021

I investigated a bit more, but the issue also exist when using protobuf, but included a separate message, which get included in another message. I guess the best simple solution would be to check if the type is the same, and then to coerce them and/or only throw an error when it's not the same.

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

No branches or pull requests

1 participant