Giter Club home page Giter Club logo

Comments (7)

gregarican avatar gregarican commented on July 30, 2024

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.

gregarican avatar gregarican commented on July 30, 2024

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.

sungam3r avatar sungam3r commented on July 30, 2024

What version do you use? Try the latest 3.0.0 preview. Also look here https://github.com/graphql-dotnet/parser/issues

from parser.

gregarican avatar gregarican commented on July 30, 2024

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.

gregarican avatar gregarican commented on July 30, 2024

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.

sungam3r avatar sungam3r commented on July 30, 2024

Possible duplicate of #33.

from parser.

sungam3r avatar sungam3r commented on July 30, 2024

Support for descriptions was added in #132

from parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.