@
@
@Richswitch2019-05-30 07:41:47
JavaScript
@Richswitch, 2019-05-30 07:41:47

How to return a normal array with numbers in GraphQl?

Hey!
I can’t figure out what type to specify in the schema to return a regular array with
Data numbers

"goods": [
    {
       ...
      "sizes": {
        "allSizes": [39, 40, 41, 42, 43],
       ...
      }
    }
  ]

schema
type Good {
    id: ID
    ...
    sizes: Sizes
  }

  type Sizes {
    allSizes: Массив здесь
  }
`);

How do I return a regular array [39, 40, 41, 42, 43] via graphQl?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lumore, 2019-05-30
_

`
allSizes: [Size]
`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question