Zendro-dev / graphql-server-model-codegen

Command line utility to auto-generate the structure files for a graphql server
MIT License
1 stars 2 forks source link

Refactor search input in GraphQL and all calling modules #140

Closed asishallab closed 4 years ago

asishallab commented 4 years ago

Currently any search involving a logical expression consisting of field, operator, and value provides the value in the form of a composite argument:

value: {
  value: "The actual value",
  type: "The type of the value, the above string is going to be translated to.
}

We want to refactor this to be more intuitive.

value and valueType where valueType is a GraphQL Enum that enables selection of the appropriate type, where value is required, and valueType is not required.

Enum of types

Use the basic GraphQL types and additionally our introduced custom ISO-Date, ISO-Time, and ISO-DateTime types.

Affected modules / projects

This issue affects both the GraphQL server as well as the single-page-application, involving each the "skeleton" and the "code-generator" sub-projects.