Skip to content

Instantly share code, notes, and snippets.

@ericso
Last active July 11, 2019 17:21
Show Gist options
  • Save ericso/f2644d4a8db7a36aa448bd2d1e69c720 to your computer and use it in GitHub Desktop.
Save ericso/f2644d4a8db7a36aa448bd2d1e69c720 to your computer and use it in GitHub Desktop.
query DrugGpis($tc_gpi_key: String, $record_type_code: String, $tc_gpi_name: String) {
drug_gpis(
pagination: {
page: 1,
perPage: 20
}
where: {
tc_gpi_key: {
like: $tc_gpi_key
}
record_type_code: {
like: $record_type_code
}
tc_gpi_name: {
like: $tc_gpi_name
}
}
) {
results {
...drugGpiFields
}
pagination {
page
perPage
count
}
}
}
fragment drugGpiFields on DrugGpi {
tc_gpi_key
record_type_code
tc_gpi_name
tc_level_code
transaction_cd
last_change_date
}
{
"tc_gpi_key": "%",
"record_type_code": "%",
"tc_gpi_name": "%",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment