how to connect pwa studio graphql to nodejento
Closed this issue · 2 comments
sivamind commented
I would like to use pwa studio with nodejento?
can you give some idea?
Genaker commented
It is easy. You need to implement graphQL or create a component which will
use Nodejento API instead of the Magento API.
It is really easy implement graphQL with Nodejento.
Resolve helpers
import { resolver } from "graphql-sequelize";
resolver(SequelizeModel[, options]);
A helper for resolving graphql queries targeted at Sequelize models or
associations. Please take a look at the tests
<https://github.com/mickhansen/graphql-sequelize/blob/master/test/integration/resolver.test.js>
to
best get an idea of implementation.
Features
- Automatically converts args to where if arg keys matches model
attributes
- Automatically converts an arg named 'limit' to a sequelize limit
- Automatically converts an arg named 'order' to a sequelize order
However, it is better to use REST api vs Graph QL without additional
obfuscation layer.
…On Tue, Sep 7, 2021 at 4:48 AM sivamind ***@***.***> wrote:
I would like to use pwa studio with nodejento?
can you give some idea?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGJNZSPX6LHN6AXCE6GWB3UAX3XXANCNFSM5DSGWH5Q>
.
sivajik34 commented
Thank you for your response