question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to import schema files with more than one definition

See original GitHub issue

For instance a file containing each of the following.

This imports correctly

type Affiliate {
  _id: String!
  ref: String!
  name: String
  paypalEmail: String
  userId: String!
  rate: Float
}

This imports as undefined

type Affiliate {
  _id: String!
  ref: String!
  name: String
  paypalEmail: String
  userId: String!
  rate: Float
}

input AffiliateInput {
  _id: String!
  ref: String!
  name: String
  paypalEmail: String
  userId: String!
  rate: Float
}

extend type Query {
  affiliates: [Affiliate]
}

extend type Mutation {
  createAffiliate(affiliate: AffiliateInput): Affiliate
  updateAffiliate(affiliate: AffiliateInput): Affiliate
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
detrohuttcommented, Mar 9, 2018

Hey @stolinski just a heads up a bug was found that affects operations with fragments. Please upgrade to v2.3.2.

1reaction
stolinskicommented, Mar 8, 2018

Works perfectly! You are the man.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MOXY- Multiple XSDs import the same schema definition- error
I have determined the cause is the fact that all three schemas import schemaDefinitions.xsd. If I remove the import statement from schema2 and ......
Read more >
Resolution of the validation error when a schema specifies ...
Resolution of the validation error when a schema specifies multiple imports with different schemaLocation and same namespace. Troubleshooting ...
Read more >
Unable to import WSDL, if it contains import of ... - GitHub
Unable to import WSDL, if it contains import of external schema definitions ... Import file Options; Click Import; PM displays Import complete :...
Read more >
Unable to import XSD with multiple dependent schema files ...
This issue occurs when the schema files are not valid. It is not possible to redefine elements from a schema where the attributeGroup...
Read more >
Data Import error message reference - Analytics Help
Message Meaning So... Empty column header at column number X. The upload file is missing a column header. Ed... Multiple errors occurred: List of multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found