Compare commits
No commits in common. "9bc6907024d0ad6b6538aa3828fdaf73cb339e3c" and "b3c56a7e85eb32497cd7e518e7bf02c2a1602653" have entirely different histories.
9bc6907024
...
b3c56a7e85
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx-web",
|
"name": "traxxx-web",
|
||||||
"version": "0.25.7",
|
"version": "0.25.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.25.7",
|
"version": "0.25.6",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@brillout/json-serializer": "^0.5.8",
|
"@brillout/json-serializer": "^0.5.8",
|
||||||
"@dicebear/collection": "^7.0.5",
|
"@dicebear/collection": "^7.0.5",
|
||||||
|
|
|
@ -77,5 +77,5 @@
|
||||||
"postcss-custom-media": "^10.0.2",
|
"postcss-custom-media": "^10.0.2",
|
||||||
"postcss-nesting": "^12.0.2"
|
"postcss-nesting": "^12.0.2"
|
||||||
},
|
},
|
||||||
"version": "0.25.7"
|
"version": "0.25.6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,6 @@ const query = pageContext.urlParsed.search.q;
|
||||||
.page {
|
.page {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-grow: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
import { graphql, buildSchema } from 'graphql';
|
|
||||||
import { scenesSchema, fetchScenesGraphql } from './scenes.js';
|
|
||||||
|
|
||||||
const schema = buildSchema(`
|
|
||||||
type Query {
|
|
||||||
scenes: [Scene]
|
|
||||||
}
|
|
||||||
|
|
||||||
${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,
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log(data);
|
|
||||||
|
|
||||||
res.send(data);
|
|
||||||
}
|
|
Loading…
Reference in New Issue