Skip to content

Instantly share code, notes, and snippets.

@cdaringe
Created October 8, 2018 01:54
Show Gist options
  • Save cdaringe/05c657935d9bf0360901c9604e57d38f to your computer and use it in GitHub Desktop.
Save cdaringe/05c657935d9bf0360901c9604e57d38f to your computer and use it in GitHub Desktop.
multiline-format.rs
let queryTemplate = r###"
{
user (login: "{owner}") {
repositoriesContributedTo(first: 5) {
edges {
node {
id
nameWithOwner
}
}
}
}
}
"###;
let query = format!(queryTemplate, owner = owner);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment