-
Notifications
You must be signed in to change notification settings - Fork 162
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
Dealing with namespaced keywords #15
Comments
Namespaces are a problem because the slash character is not allowed in a name (http://facebook.github.io/graphql/#sec-Names). |
This is doable, but like @hlship mentioned, you'll need to find a way to map these keys in your data structure to keys in your GraphQL schema. My suggestion would be to override the default-field-resolver (see the default one here) to instead look up using whatever namespacing you're using. Does that help? EDIT: To elaborate, you could name your schema field name something like |
@bcarrell That's exactly what I've been doing as a workaround, the double underscores. Looks like it's more difficult to retrofit GraphQL on our backend, as we are using URIs as keys as well. I'll close this for now. |
I'm trying to retrofit an existing REST endpoint (which returned EDN) to GraphQL using Lacinia.
The response contains a lot of namespaced keywords. Has Lacinia support for querying these?
The text was updated successfully, but these errors were encountered: