This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloServer } from 'apollo-server-express' | |
import { createKeycloakRuntimeContext } from '@graphback/keycloak-authz' | |
import { GraphbackRuntime } from 'graphback' | |
import { KnexDbDataProvider } from '@graphback/runtime-knex' | |
import { PubSub } from 'graphql-subscriptions' | |
import * as Knex from 'knex' | |
import { printSchema } from 'graphql' | |
// the application model | |
const model = ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { KeycloakCrudService } from '@graphback/keycloak-authz' | |
class CustomCrudService extends KeycloakCrudService { | |
// custom implementation | |
} | |
const services = createKeycloakRuntimeContext({ | |
models, | |
schema: model, | |
db, |
OlderNewer