Skip to content

Templatize query "where" clauses #85

@VladimirAlexiev

Description

@VladimirAlexiev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions