Make parsing publicly accessible#776
Conversation
Adds a parse method on GraphQLRequest Exposes and documents types that make that possible: Document, Spanning and ParseError
adds a very simple example that does not use any frameworks and just demonstrates how the library works on its own
# Conflicts: # juniper/src/lib.rs
|
I think we could kill two birds with one stone if instead of adding a I think it's also worth it to look into eliminating the schema / scalar template parameter requirement from parsing before making |
|
Thanks @ccbrown! I'm not sure I understand where you're suggesting to add the method. Are you suggesting that:
Regarding the |
Just 2. Then delete the parse method because we could just use the existing
Sounds good to me. 👍 |
Partial fix for #726
Reference #773
I've added
parseas a public method on theGraphQLRequesttype. I've documented and exposedDocument,SpanningandParseErrorto allow working with the resulting type.