Skip to content

Commit

Permalink
chore: Remove backend_only mutation default
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Jul 26, 2023
1 parent b0fc6ed commit 09b6928
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ exports[`HasuraClient adds the specified permissions for the specified roles/tab
{
"args": {
"permission": {
"backend_only": true,
"check": {},
"columns": "*",
"computed_fields": [],
Expand All @@ -42,7 +41,6 @@ exports[`HasuraClient adds the specified permissions for the specified roles/tab
{
"args": {
"permission": {
"backend_only": true,
"check": {},
"columns": "*",
"computed_fields": [],
Expand All @@ -60,7 +58,6 @@ exports[`HasuraClient adds the specified permissions for the specified roles/tab
{
"args": {
"permission": {
"backend_only": true,
"check": {},
"columns": "*",
"computed_fields": [],
Expand Down Expand Up @@ -96,7 +93,6 @@ exports[`HasuraClient adds the specified permissions for the specified roles/tab
{
"args": {
"permission": {
"backend_only": true,
"check": {},
"columns": "*",
"computed_fields": [],
Expand All @@ -114,7 +110,6 @@ exports[`HasuraClient adds the specified permissions for the specified roles/tab
{
"args": {
"permission": {
"backend_only": true,
"check": {},
"columns": "*",
"computed_fields": [],
Expand All @@ -132,7 +127,6 @@ exports[`HasuraClient adds the specified permissions for the specified roles/tab
{
"args": {
"permission": {
"backend_only": true,
"check": {},
"columns": "*",
"computed_fields": [],
Expand Down
4 changes: 1 addition & 3 deletions indexer-js-queue-handler/hasura-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ export default class HasuraClient {
check: {},
computed_fields: [],
filter: {},
...(permission === "select"
? { allow_aggregations: true }
: { backend_only: true }),
...(permission === "select" && { allow_aggregations: true })
},
source: 'default'
},
Expand Down

0 comments on commit 09b6928

Please sign in to comment.