Enabling GraphQL for Columns in QueryDeck
Last updated
Last updated
QueryDeck allows you to control which database columns are exposed via GraphQL, ensuring that only necessary data is available through API queries. This enhances security, improves performance, and keeps your API responses clean.
Navigate to the GraphQL Section
Open the QueryDeck app you want to edit
Go to the GraphQL tab.
Select the table for which you want to enable GraphQL access by clicking on the "+" button
Select the Columns to Expose
Click on the Columns dropdown for the selected table.
A popup will appear listing all the columns in the table, select ur desired columns.
After selecting the required columns, click Save to apply the changes.
Restrict Access to Sensitive Columns: Disable GraphQL access for fields like passwords, payment details, or internal metadata.
Role-Based Access: Use QueryDeck’s authentication and authorization settings to control column visibility based on user roles.