Implement toString() to support graphql.js #206
Labels
feature
New addition or enhancement to existing solutions
good first issue
Issues that are suitable for first-time contributors.
graphql.js
Issue Labels
/label graphql.js
graphql-tag claims to be a utility for graphql, but doesn't have any indication on how to use it with graphql package. Sure enough the result from graphql-tag might be valid AST, but the I don't think that the specifications really make any mention of queries being in AST format. Graphql doesn't support gql objects as query parameter.
This should be really easy to implement with the objects returned by the template stringy adding a custom toString() -function to them. Currently the default is always returns "[object Object]".
If above change is unacceptable, there should be documentation how to properly retrieve the query in string form.
The text was updated successfully, but these errors were encountered: