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

why Postraphile isn't exposing the parent table instead of the partition tables. #1991

Closed
divya-sk opened this issue Mar 14, 2024 · 3 comments

Comments

@divya-sk
Copy link

I am raising one question addressing why Postraphile isn't exposing the parent table instead of the partition tables.

@benjie
Copy link
Member

benjie commented Mar 14, 2024

Why: because Postgres didn’t support partition tables when v4 came about and no-one added support until recently.

What can you do about it: this is fixed in version 5, and you can also work around it in V4 with the option detailed in this PR: graphile/graphile-engine#801

@divya-sk
Copy link
Author

we are using "postgraphile": "4.13.0", still facing the same issues

graphqlRoute: "/shield/graphql",
graphiqlRoute: "/shield/graphiql",
eventStreamRoute: "/shield/graphql/stream",
ownerConnectionString: process.env.OWNER_CONNECTION_STRING,
watchPg: true,
graphiql: true,
enhanceGraphiql: true,
pgUsePartitionParents: true,
enableCors: false,
disableWarning: true,
statement_timeout: "3600000",
appendPlugins: [
require("@graphile-contrib/pg-simplify-inflector"),
require("postgraphile-plugin-connection-filter"),
],
}
),
this is the piece of code we using.

@benjie
Copy link
Member

benjie commented Mar 15, 2024

As shown in the link above, the option goes inside of graphileBuildOptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants