Introspect queries produces an error
See original GitHub issueIntrospecting queries is quite limited at the moment. See discussion
SELECT INTROSPECT
....... typeof (select shop::Category{id, description} LIMIT 1);
error: cannot introspect transient type variant
┌─ query:2:3
│
2 │ typeof (select shop::Category{id, description} LIMIT 1);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error
The ability to introspect a query might come in very handy for multiple use cases like generating language specific types for a queries. Typescript for example.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Fix error message for introspect queries when output arg is ...
We're trying to get basic graphql introspection working and have been unable to get anything to work on a variety of public and...
Read more >Apollo-codegen introspection throws error - Stack Overflow
I have been working with apollo-codegen to introspect my schema in a proyect without problem and from one moment to ...
Read more >Learn Sangria
This code will produce status code 400 in case of any error caused by client (query validation, invalid operation name, error in query...
Read more >Utilities — GraphQL-core 3 3.3.0a2 documentation
Given the result of a client running the introspection query, creates and returns a GraphQLSchema instance which can be then used with all...
Read more >Azure: Introspector attempts to look into other databases that ...
Azure: Introspector attempts to look into other databases that causes errors "Azure Limitation: [S0001][40515] Reference to database and/or server name in ' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW it’s possible to introspect the exact return type of any query via preparing it at the protocol level. Our JS driver has some private APIs to do that.
We should later discuss if we even want to support INTROSPECT TYPEOF on arbitrary selects.