M
M
magary42020-06-05 10:36:53
JavaScript
magary4, 2020-06-05 10:36:53

How to filter search results?

there is such an endpoint
I am new to graphql and just sat down to learn. Here's what's in the documentation regarding filtering. but I can't apply it because I see only one available function (or whatever it's called, I don't know yet) getBoatsbut not the collection itself to apply the filter and pagination. Is it even possible on this enpoint? Or do I need to knock out everything and filter already on the client?

Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-06-05
@magary4

All this schema provides is a query with an active: true/false filter. Example:

{
  getBoats(input: { active: true }) {
    id
    name
    price
    imageUrl
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question