sorare / api

Sorare API documentation
153 stars 47 forks source link

aCardWasUpdated (Field 'aCardWasUpdated' has an invalid value) #228

Open stanhjr opened 2 years ago

stanhjr commented 2 years ago

hi ^)

previously it worked:

subscription offerUpdate{ aCardWasUpdated (events: [offer_event_tentatively_accepted, auction_event_successfull]) $CARD_QUERY }

now i get this:

{'message': "Argument 'events' on Field 'aCardWasUpdated' has an invalid value ([offer_event_tentatively_accepted, auction_event_successfull]). Expected type '[CardWasUpdatedEvent!]'

works in this case:

subscription offerUpdate{ aCardWasUpdated (events: [auction_event_successfull]) $CARD_QUERY }

dont works in this case:

subscription offerUpdate{ aCardWasUpdated (events: [offer_event_tentatively_accepted]) $CARD_QUERY }

Is this a temporary issue or has the api changed?

juliusdanek commented 2 years ago

It seems like the CardWasUpdatedEvent enum was updated.

Screenshot 2022-06-06 at 10 25 17

stanhjr commented 2 years ago

Yes, thank you

juliusdanek commented 2 years ago

@redox @eulbat can you close this issue?