[GraphQL MetafieldDefinition] How to get whether a metafield allows multiple values ​​or not by API

Hello @ttpp :waving_hand:

Your best bet is to query the name of the type and check that it starts with “list.”

query Definition {
  metafieldDefinitions(first: 10, ownerType: ORDER) {
    edges {
      node {
        type {
          name
        }
      }
    }
  }
}

This prefix is consistently used for all types that support a list of values.