Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{"partNumbers": ["1234-ABCD", "5678-EFGH"]}

There are When using the CONTAINS type, you can have many values for the part numbers so the CONTAINS type should be used if only a single part number is knownnumber. Any session that has one or more of these values for the part number field will be returned by the query.

CONTAINS Query

Code Block
query FetchScenarioSessionsWithContains(
  $first: Int!,
  $type: String!,
  $key: String!,
  $value: Alphanumeric!
) {
  scenarioSessions(
    first: $first, 
    externalData: {
      type: $type, 
      key: $key, 
      value: $value
    }
  ) 
  {
    nodes {
      nodes {
        id
        databaseId
        sessionType
        externalData
        user {
          id
        }
      }
    }
  }
}

...