Fixed add stash in notifications panel. Fixed iframe ads breaking page width. Improved actor and movie tile size in search results.
This commit is contained in:
@@ -4,18 +4,29 @@ import {
|
||||
GraphQLScalarType,
|
||||
} from 'graphql';
|
||||
|
||||
import { scenesSchema, fetchScenesGraphql } from './scenes.js';
|
||||
import {
|
||||
scenesSchema,
|
||||
fetchScenesGraphql,
|
||||
fetchScenesByIdGraphql,
|
||||
} from './scenes.js';
|
||||
|
||||
import {
|
||||
entitiesSchema,
|
||||
fetchEntitiesGraphql,
|
||||
fetchEntitiesByIdGraphql,
|
||||
} from './entities.js';
|
||||
|
||||
const schema = buildSchema(`
|
||||
type Query {
|
||||
scenes(
|
||||
movies(
|
||||
limit: Int = 30
|
||||
): Result
|
||||
): ReleasesResult
|
||||
}
|
||||
|
||||
scalar Date
|
||||
|
||||
${scenesSchema}
|
||||
${entitiesSchema}
|
||||
`);
|
||||
|
||||
const DateTimeScalar = new GraphQLScalarType({
|
||||
@@ -39,6 +50,9 @@ export async function graphqlApi(req, res) {
|
||||
},
|
||||
rootValue: {
|
||||
scenes: async (query) => fetchScenesGraphql(query, req),
|
||||
scene: async (query) => fetchScenesByIdGraphql(query, req),
|
||||
entities: async (query) => fetchEntitiesGraphql(query, req),
|
||||
entity: async (query) => fetchEntitiesByIdGraphql(query, req),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user