Skip to content

Added consume_definition #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2021
Merged

Conversation

That3Percent
Copy link
Contributor

This PR adds a new API consume_query:

/// Parses a single ExecutableDefinition and returns an AST as well as the
/// remainder of the input which is unparsed
pub fn consume_definition<'a, S>(s: &'a str) -> Result<(Definition<'a, S>, &'a str), ParseError> where S: Text<'a> { ... }

There are 4 tests demonstrating the functionality.

Resolves #35
Replaces #36

@tailhook tailhook merged commit 796583c into graphql-rust:master Feb 17, 2021
@tailhook
Copy link
Collaborator

Merged! Sorry for the long delay.

@That3Percent
Copy link
Contributor Author

No problem! Thanks so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nom query
2 participants