Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Not Found, I cannot access GraphQL Playground #234

Closed
ilyaskarim opened this issue Oct 15, 2020 · 0 comments
Closed

When using Not Found, I cannot access GraphQL Playground #234

ilyaskarim opened this issue Oct 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ilyaskarim
Copy link
Collaborator

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.

@ilyaskarim ilyaskarim added the bug Something isn't working label Oct 15, 2020
@ilyaskarim ilyaskarim mentioned this issue Oct 15, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant