Comments (7)
What further complicates the situation is that some comments have multiple lines, with triple quotes on either end of the block. I suppose I can just regex all of it away for now as a workaround.
from parser.
So I was able to remove all triple-quoted comments using RegEx. Now I receive this error when porting in the schema:
GraphQLParser.Exceptions.GraphQLSyntaxErrorException
HResult=0x80131500
Message=Syntax Error GraphQL (1:3526) Unexpected character "&"
It appears that the routine is choking on:
type AppPurchaseOneTime implements AppPurchase & Node
The schema as a few cases where types implement from multiple other types. Is this something that's not allowed or is there an option that will allow this?
from parser.
What version do you use? Try the latest 3.0.0 preview. Also look here https://github.com/graphql-dotnet/parser/issues
from parser.
Just updated to the v3.0.0 preview version. Same result. I didn't previously search through the parser issue area to see if it can't process a type with multiple implements. I assume this is the case.
from parser.
I replaced all & characters with commas and the schema successfully parsed. Need to perform some test queries to see if it all pulled over completely/correctly.
from parser.
Possible duplicate of #33.
from parser.
Support for descriptions was added in #132
from parser.
Related Issues (20)
- Ensure October spec compliance before v8 release and publish release
- Optimize comments and block strings
- Add SDLPrinterOptions.Sorted property HOT 7
- Don't track branch coverage for Debug.Assert HOT 4
- Publish v8.1.0 release HOT 1
- Fix readme on Nuget
- SDLPrinter.Print in addition to SDLPrinter.PrintAsync HOT 8
- Strange formatting of input types with descriptions HOT 16
- More Parse methods HOT 5
- Revise AST constructors
- Add tests to increase code coverage up to 100%
- 9.0.1 formatting - lost indentation of arguments (fine in 8.x) HOT 4
- All literals should have proper indentation in case of preceding comments
- Inconsistent formatting of arguments HOT 16
- Suggested feature: default AST visitor context
- Fix broken indentation
- There's an extra space here also, between `...` and `@skip`.
- Handle whitespaces somehow HOT 3
- Pretty print graphql query? HOT 9
- Printing SDL drops ‘mutation’
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parser.