Added secondary stash menu to stash heart.
This commit is contained in:
@@ -9,16 +9,14 @@ const schema = buildSchema(`
|
||||
${scenesSchema}
|
||||
`);
|
||||
|
||||
const rootValue = {
|
||||
scenes: fetchScenesGraphql,
|
||||
};
|
||||
|
||||
export async function graphqlApi(req, res) {
|
||||
const data = await graphql({
|
||||
schema,
|
||||
source: req.body.query,
|
||||
variableValues: req.body.variables,
|
||||
rootValue,
|
||||
rootValue: {
|
||||
scenes: async (query) => fetchScenesGraphql(query, req),
|
||||
},
|
||||
});
|
||||
|
||||
console.log(data);
|
||||
|
||||
Reference in New Issue
Block a user