HomeServicesOfAmerica / moleculer-graphql

[Archived] GraphQL Schema stitching over a microservice network for co-located type definitions.
GNU General Public License v3.0
48 stars 17 forks source link

How to connect to Database #16

Closed vctqs1 closed 4 years ago

vctqs1 commented 4 years ago

I read example and see that

type Query {
 author(id Int): () => data.find(e => e.id === id) 
}

data is existing json from another file. And here I want to call data from database. Example Sequelize. How to custom here?

And I'm so sorry because my english does not good.