poap-xyz / poap.js

POAP implemetation in javascript
https://sdk.poap.tech/
MIT License
9 stars 8 forks source link

Implement search drops #101

Closed jm42 closed 5 months ago

jm42 commented 5 months ago

Is your feature request related to a problem? Please describe.

I want to search drops using the compass search_drops instead of doing the slow "name like"-type of search.

Describe the solution you'd like

I would like that the drops client supports something similar to this query:

query SearchDrops(
  $offset: Int!
  $limit: Int!
  $query: String!
) {
  search_drops(
    offset: $offset
    limit: $limit
    args: {
      search: $query
    }
  ) {
    id
    name
    imageUrl: image_url
  }
}

Describe alternatives you've considered

I have implemented this myself in many project and I would like to see it standardized.

Additional context

The method will also need to serialize and take in account the same behaviours as the drops client does now.