pixelass / phony

a collection of phony/mock services
https://pixelass.github.io/phony/
MIT License
13 stars 0 forks source link

GraphQL Subscriptions #5

Open AshleyAitken opened 4 years ago

AshleyAitken commented 4 years ago

Hi, thanks for Phony, it's great.

Do you think it would be difficult / a lot of work to add GraphQL Subscriptions to Phony? For example, so it would allow client to get notified when changes occurred on Phony server.

pixelass commented 4 years ago

In general it should be possible. I'm not sure how hard it would be to add this feature and/or how long it would take but I can look into it.

AshleyAitken commented 4 years ago

Thanks, that would be great. My use-case is having a SPA call a mock HTTP-based API that will send create/mutate GraphQL to Phony. The SPA will also subscribe to notifications from Phony and thus update its views when the data changes. Or at least that's the plan :-)

pixelass commented 4 years ago

Thx for the additional info. I will consider it as a new feature.