Multi-Line Text Field

Sample Multi Line Query

Query

{
shops {
description
}
}

Output

{
"data": {
"shops": [
{
"description": "Nice little coffee place."
}
]
}
}

Filtering by Single Line

Single Line filters support:

  • _not
  • _in
  • _not_in
  • _contains
  • _not_contains
  • _starts_with
  • _not_starts_with
  • _ends_with
  • _not_ends_with

title: String

{
shops(where: { description: "A nice little coffee place." }) {
description
}
}

description_not: String

{
shops(where: { description_not: "A fancy tea place." }) {
description
}
}

description_in: [String!]

{
shops(where: { description_in: ["A nice little coffee place."] }) {
description
}
}

description_not_in: [String!]

{
shops(where: { description_not_in: ["A fancy tea place."] }) {
description
}
}

description_contains: String

{
shops(where: { description_contains: "coffee" }) {
description
}
}

description_not_contains: String

{
shops(where: { description_not_contains: "tea" }) {
description
}
}

description_starts_with: String

{
shops(where: { description_starts_with: "A nice" }) {
description
}
}

description_not_starts_with: String

{
shops(where: { description_not_starts_with: "A fancy" }) {
description
}
}

description_ends_with: String

{
shops(where: { description_ends_with: "place." }) {
description
}
}

description_not_ends_with: String

{
shops(where: { description_not_ends_with: "house." }) {
description
}
}

Mutating a Single Line

Mutation

mutation {
createShop(data: { description: "A nice little coffee place." }) {
description
}
}

Output

{
"data": {
"createShop": {
"description": "A nice little coffee place."
}
}
}

This site uses cookies to provide you with a better user experience. For more information, refer to our Privacy Policy