Skip to content

Commit

Permalink
resolve conflict in query_rewriter.go
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-goldstein committed Sep 15, 2022
1 parent e87d1fb commit c75b4d1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions graphql/resolve/query_rewriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,15 +627,6 @@ func addCommonRules(
return []*gql.GraphQuery{dgQuery}, rbac
}

<<<<<<< HEAD
if authRw != nil && (authRw.isWritingAuth || authRw.filterByUid) &&
(authRw.varName != "" || authRw.parentVarName != "") {
// When rewriting auth rules, they always start like
// Todo2 as var(func: uid(Todo1)) @cascade {
// Where Todo1 is the variable generated from the filter of the field
// we are adding auth to.

=======
// When rewriting auth rules, they always start like
// Todo2 as var(func: uid(Todo1)) @cascade {
// Where Todo1 is the variable generated from the filter of the field
Expand All @@ -649,7 +640,6 @@ func addCommonRules(
// Todo: Add more comments to this block.
if authRw != nil && (authRw.isWritingAuth || authRw.filterByUid) &&
(authRw.varName != "" || authRw.parentVarName != "") && ids == nil {
>>>>>>> c82c4adc9 (commenting out potentially unnecessary blocks (should verify))
authRw.addVariableUIDFunc(dgQuery)
// This is executed when querying while performing delete mutation request since
// in case of delete mutation we already have variable `MutationQueryVar` at root level.
Expand Down

0 comments on commit c75b4d1

Please sign in to comment.