Uconnect-Technologies / wertik-js

💪 A library that powers your app with GraphQL + Rest API

Home Page:http://wapgee.com/wertik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When using Not Found, I cannot access GraphQL Playground

ilyaskarim opened this issue · comments

When using Not Found, I cannot access GraphQL Playground. I have a module that has a Rest API route:

export default {
  name: "NotFound",
  useDatabase: false,
  graphql: {
    crud: {
      query: {
        generate: false,
        operations: "*",
      },
      mutation: {
        generate: false,
        operations: "*",
      },
    },
    schema: ``,
    mutation: {
      schema: ``,
      resolvers: {},
    },
    query: {
      schema: ``,
      resolvers: {},
    },
  },
  restApi: {
    endpoints: [
      {
        path: "*",
        methodType: "get",
        handler: function (req, res) {
          res.render("app/includes/errors/404");
        },
      },
    ],
  },
};

This fails to access GraphQL playground.