Skip to content
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

Templatize query "where" clauses #85

Open
VladimirAlexiev opened this issue Oct 16, 2020 · 0 comments
Open

Templatize query "where" clauses #85

VladimirAlexiev opened this issue Oct 16, 2020 · 0 comments

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented Oct 16, 2020

https://github.com/LiUGraphQL/LinGBM/wiki/Introduction-to-the-LinGBM-Project#scenarios describes 2 scenarios: use the the query templates directly, or customize them.

I think it's entirely feasible to keep the main query structure fixed, because the schema is fixed. This includes query params, nesting, field names.

However, GraphQL doesn't have a standardized language for Where clauses. Eg to test Ontotext PLATFORM, in QT10 we need to replace

publicationSearch(field:title, criterion:CONTAINS, pattern:"$keyword") 
  ->
publicationSearch(where:{title:{RE:$keyword}})

Does it make sense to templatize only the Where clauses, keeping the rest of the query bodies fixed?

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

No branches or pull requests

1 participant