These are chat archives for reactioncommerce/reaction

2nd
May 2019
0l6
@0l6
May 02 03:34
I'am looking for a devoloper to help me out with reaction
Nei Santos
@nei
May 02 09:10
anyone has a sample request on how to create a product via graphql client?
it seems it was supposed to be very simple but I can't find it.
Eliot Hills
@elhil
May 02 14:30
@nei I don’t think there is one, it looks like the operator UI uses a Meteor method right now: https://github.com/reactioncommerce/reaction/blob/develop/imports/plugins/included/product-admin/client/hocs/withCreateProduct.js#L13
you could easily write a mutation that calls this method
Daniel Honig
@dhonig
May 02 15:13
@0l6 you can see is @loan-laux has any free time....
Daniel Honig
@dhonig
May 02 15:31
@elhil that work to move operator away from meteor methods is in progress. I just saw a PR for that
Eliot Hills
@elhil
May 02 15:31
nice :thumbsup:
Nei Santos
@nei
May 02 15:33
@elhil thank you, I feel better now because I spend quite a few hours trying to understand why I couldnt see these methods availayble on the graphql playground.
@elhil I am new in this world :) can you send me the reference to some code?
Eliot Hills
@elhil
May 02 15:34
@nei looks like you won’t need to because they’re already implementing it, but https://docs.reactioncommerce.com/docs/graphql-create-mutation#step-1-identify-which-plugin-owns-the-mutation
the graphQL code structure can be a lot to understand at first, but eventually it makes a lot of sense
Nei Santos
@nei
May 02 15:37
ok, so all the communication between the admin UI is via Meteor and not graphql? is that correct?
Eliot Hills
@elhil
May 02 15:37
I think it’s mixed at the moment
as they slowly transition to graphQL
Nei Santos
@nei
May 02 15:38
all right. that now make sense :)
thank you @elhil
Eliot Hills
@elhil
May 02 15:38
no problem :relaxed:
Daniel Honig
@dhonig
May 02 15:45
Anybody using Altair as a GraphQL client?
Patrick Newell
@pnewell4_twitter
May 02 15:45
I do
nice I'm getting used to it
Patrick Newell
@pnewell4_twitter
May 02 15:48
remember to refresh your docs if you're changing anything serverside... the docs drive the autocomplete
image.png
I like the environments feature too. super simple to toggle between development and production without having to create a new tab, or edit the URL
image.png
^ creating an environment
image.png
^ and using it
Daniel Honig
@dhonig
May 02 15:54
thats nice. Its a step up from Graphiql for sure!
Eliot Hills
@elhil
May 02 16:34
@dhonig @pnewell4_twitter do you all have auth set up on reaction by any chance?
Daniel Honig
@dhonig
May 02 16:55
I do....I'm using docker swarm with traefik as a reverse proxy.....SSL is not working out well in that setup, so I'm going to build hydra inside of an nginx container for SSL.
@elhil is there a problem your having with Hydra?
Eliot Hills
@elhil
May 02 16:56
ah I’m sorry, I meant using altair
just curious if you were able to run queries / mutations that require auth
Daniel Honig
@dhonig
May 02 17:03
image.png
maybe @pnewell4_twitter knows another way....been doing it by using headers
Eliot Hills
@elhil
May 02 17:05
is there a guide on how to obtain the values for those headers? :grimacing:
Patrick Newell
@pnewell4_twitter
May 02 17:05
headers.... me too.
(+ some hacking of core code!) :disappear:
Eliot Hills
@elhil
May 02 17:06
:eyes:
did y’all hear something
jm18457
@jm18457
May 02 17:40
How do I make feature request so that emails are sent based on user selected preference as first option and default shop language as second option, rather than just send shop language? We have working solution example.
Daniel Honig
@dhonig
May 02 17:58
@jm18457 just make a pull request on the main reaction repo and include hte details of your solution