Uploaded image for project: 'Magnolia GraphQL'
  1. Magnolia GraphQL
  2. MGNLGQL-47

Same-name types shouldn't be registered as GraphQL types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None

    Description

      2020-08-06 10:32:25,856 ERROR info.magnolia.graphql.core.http.GraphQLServlet    : Failed to execute the GraphQL query
      graphql.AssertException: All types within a GraphQL schema must have unique names. No two provided types may have the same name.
      No provided type may have a name which conflicts with any built in types (including Scalar and Introspection types).
      You have redefined the type 'Stats' from being a 'GraphQLObjectType' to a 'GraphQLObjectType'
      

      AC:

      • Write validator that will prevent same-name type registration

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jsimak Jaroslav Simak
              jsimak Jaroslav Simak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD