ariadne icon indicating copy to clipboard operation
ariadne copied to clipboard

Expose Source text

Open calder opened this issue 5 months ago • 1 comments

Use Case

Please correct if there's a less dumb way of doing this!

I'm using a custom Cache implementation, and would like to maintain a single Id --> Source map. This doesn't work today because there's no way for non-Ariadne consumers like a parser to access Source::text. Exposing it makes Source immediately useful for non-Ariadne applications.

calder avatar Jan 08 '24 16:01 calder