You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several questions... How to get typescript type of an object? How to change playground request url? Any way to do lookahead finds instead of hacking with the info object?
#1412
I've just started yesterday trying out nexus, and honestly seems the most promising framework I've seen, I've ran into several "problems" tho
First: can't understand how to get the return type of an object directly, I need to use this in combination with the "graphql-fields" package to do look-ahead searches, since it parses an info object an return an "any" type
Second: I was making a fullstack boilerplate (starting from the example) of nextjs/nexus, the playground runs request against /graphql but the server is started on /api (so it should be /api/graphql) making Playground unusable, dnt know how to solve this either
Third (continuing the first question): Is there any way of accessing subfields of a type without hacking into the info object? Many frameworks are starting to implement this feature (postgraphile uses this for example, as well as other frameworks I've seen in Kotlin and Rust, having easy access to selected subfields), this would make custom queries way more efficient and remove the need of dataloaders for almost all cases (example packages of parsing the info object are "graphql-fields" and "graphile/graphql-parse-resolve-info"
Apart from this, love the easieness of the framework so far ! I hope someone can help, thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've just started yesterday trying out nexus, and honestly seems the most promising framework I've seen, I've ran into several "problems" tho
First: can't understand how to get the return type of an object directly, I need to use this in combination with the "graphql-fields" package to do look-ahead searches, since it parses an info object an return an "any" type
Second: I was making a fullstack boilerplate (starting from the example) of nextjs/nexus, the playground runs request against /graphql but the server is started on /api (so it should be /api/graphql) making Playground unusable, dnt know how to solve this either
Third (continuing the first question): Is there any way of accessing subfields of a type without hacking into the info object? Many frameworks are starting to implement this feature (postgraphile uses this for example, as well as other frameworks I've seen in Kotlin and Rust, having easy access to selected subfields), this would make custom queries way more efficient and remove the need of dataloaders for almost all cases (example packages of parsing the info object are "graphql-fields" and "graphile/graphql-parse-resolve-info"
Apart from this, love the easieness of the framework so far ! I hope someone can help, thanks
Beta Was this translation helpful? Give feedback.
All reactions