rubensworks / GraphQL-LD.js

Linked Data Querying with GraphQL
https://gist.github.com/rubensworks/9d6eccce996317677d71944ed1087ea6
MIT License
103 stars 7 forks source link

Context object is changed by the engine #8

Closed pheyvaer closed 5 years ago

pheyvaer commented 5 years ago

The context object is changed when the engine executes the query. This is important to know if you want to reuse the context for something later on. I would suggest to add this to the docs/README.

rubensworks commented 5 years ago

Hmm, it shouldn't be changed though, so I'll classify this as a bug.

pheyvaer commented 5 years ago

Ooh ok. The thing that I noticed is that {@reverse: "http://example.com/"} gets converted to {@reverse: true, @id: "http://example.com/"}.