<@U5P82S230> had a great idea about a IFTTT or Zap...
# prisma-whats-new
n
@agartha had a great idea about a IFTTT or Zapier integration for Graphcool: https://github.com/graphcool/feature-requests/issues/238 would love to find someone in the community to collaborate on this. Anyone interested? 🙂
a
@nilan me lol
d
I had thought zapier/ifttt were services used primarily by cms admins (wordpress/drupal/etc). If so, is that really a target audience for graphcool? If not, disregard.
a
Zapier and IFTTT are used to connect different systems. It's basically a big webhook system. Any system that produces relevant events for the outside world, or can consume relevant events from the outside world, can use it.
Sample use cases: calling any mutation in Graphcool based on any outside event. What that would be, is mostly dependent of the application you're building with Graphcool
Take the instagram clone app for example. With Zapier/IFTTT, I could set up a link that whenever I post something on instagram, it would also be posted to our instagram app.
d
The benefit of this being that you can avoid manually interacting w/ the instagram api and instead use zap/ifttt?
a
Hmmm... I need to rethink my examples 🙂
n
@dk0r I have a very simple example that I encountered recently
I wanted to setup a Slack notification so that whenever a new post is created in one of my projects, I receive a notice about that
a
Great example @nilan thank you
n
instead of digging through the Slack docs myself, I quickly setup a Zapier "Zap". A Zap has a "trigger" and something that "is triggered"
d
Ok. This sounds similar to agartha's example no? A graphcool mutation spawns a call back that interacts w/ the Slack api to post a slack notification?
n
in my case, the "trigger" was a simple HTTP POST, and the "is triggered" was a new message in my Slack channel
d
I see.
n
yea
a few weeks later I encountered a similar situation
and this time I setup the "Slack App" myself
d
So basically, zap/ifttt usage allows us to avoid direct interaction with various api's
n
that cost more time, because I needed to talk to the Slack API directly
yep
it's actual javascript
d
I could see how that might be useful --pricing and usage (limited number of
zaps
) on those services also looks like a barrier to entry
n
I don't think there's a limited number of zaps, but a limited number of invocations
a
Both
n
it works well for my usage though, but it's a valid point that needs to be considered
a
There's a bit of layering going on. I'm building an app, based on Graphcool. If I want other apps to connect to my app and vice versa, I'd create a service on Zapier for my app, and let users setup Zaps to interact with it.
d
yeah --zap/ifttt integration would be interesting and open up graphcool to a whole new market. I just don't know how much that integration is worth
a
With Graphcool having it's own generic service on Zapier, I can directly use that to poll, query, mutate etc.
d
hmm
a
Well, the problem for Graphcool is that it's not an end-user product, but a back-end platform
Users want to connect to the apps we're building on top of Graphcool, not to Graphcool directly
d
right, but services like zap/ifttt kind of bridge that gap in a sense
a
Yes
d
which is why it could open up graphcool to a new market
n
so what would a new Graphcool integration offer?
for example Mailchimp, they offer to add a customer to a mailing list I think
what could be a simple use case for the Graphcool integration?
let's stay with Zapier for now because that's what I'm familiar with
I can't see a good use case for queries right now, can you? mutations works well. whenever something happens, create a new node with these specific input arguments
a
queries can be used as trigger together with cron
mutation at the action side, query at the trigger side
n
ah is that something you can setup with Zapier already? the cron thing
a
Yes
n
sounds great
d
What is meant by
action-side
versus
trigger-side
?
a
Zaps, or IFTTT recipes, have a trigger side and an action side, the trigger initiates the action.
Both could be connected to Graphcool
A query that is polled could be a trigger, a mutation that is called could be an action
A Graphcool trigger would connect an event in Graphcool to the outside world
A Graphcool action would connect an event from the outside world to Graphcool