Skip to content

Normal queries should use data field #2

@popstr

Description

@popstr

Hey Oded!
You have provided a really nice and useful example. Thank you for that!

However, I think you have an error in the RepositorySchema class. When doing a normal query (not introspection), we need to return the data under the a field called "data", just like we do in the Introspection case. See response examples at https://graphql.org/learn/queries/

This is the line that outputs the data without the data field:

returnData = graphQL.execute(queryString,query).getData();

I'll make you a PR unless you have a different opinion on the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions