Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Conversation

VoronoyAlexandr
Copy link
Contributor

@VoronoyAlexandr VoronoyAlexandr commented Nov 21, 2018

Description (*)

PR fixed bug "Schema must contain unique named types but contains multiple types named 'Recipient'"

Fixed Issues (if relevant)

#260: [BUG] Schema must contain unique named types but contains multiple types named "Recipient"

Manual testing scenarios (*)

Queries for testing

mutation {
    sendEmailToFriend(
        input: {
          product_id: 3	
          sender: {
            name: "Name"
            email: "[email protected]"
           message: "Lorem Ipsum"
        }          
          recipients: [
              {
                  name: "Recipient Name 1"
                  email:"[email protected]"
               },
              {
                  name: "Recipient Name 2"
                  email:"[email protected]"
              }
          ]
        } 
    ) {
        sender {
            name
            email
            message
        }
        recipients {
            name
             email
        }
    }
}

end

query IntrospectionQuery {
    __schema {
      queryType { name }
      mutationType { name }
      types {
        ...FullType
      }
      directives {
        name
        description
        locations
        args {
          ...InputValue
        }
      }
    }
  }

  fragment FullType on __Type {
    kind
    name
    description
    fields(includeDeprecated: true) {
      name
      description
      args {
        ...InputValue
      }
      type {
        ...TypeRef
      }
      isDeprecated
      deprecationReason
    }
    inputFields {
      ...InputValue
    }
    interfaces {
      ...TypeRef
    }
    enumValues(includeDeprecated: true) {
      name
      description
      isDeprecated
      deprecationReason
    }
    possibleTypes {
      ...TypeRef
    }
  }

  fragment InputValue on __InputValue {
    name
    description
    type { ...TypeRef }
    defaultValue
  }

  fragment TypeRef on __Type {
    kind
    name
    ofType {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                }
              }
            }
          }
        }
      }
    }
  }

and others done without errors.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@VoronoyAlexandr VoronoyAlexandr changed the title Changed schema input and output, fixed bug with uniq type [260] Fixed bug with uniq type Nov 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants