Skip to content

Commit

Permalink
default is empty for NormalizeCompatibilityMode
Browse files Browse the repository at this point in the history
  • Loading branch information
mangalaman93 committed Aug 4, 2023
1 parent 3fd0e83 commit 12718e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion dgraph/cmd/alpha/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ they form a Raft group and provide synchronous replication.
flag.String("feature-flags", worker.FeatureFlagsDefaults, z.NewSuperFlagHelp(worker.FeatureFlagsDefaults).
Head("Feature flags to enable various experimental features").
Flag("normalize-compatibility-mode", "configure @normalize response formatting."+
" 'v23': (default) fields with the same alias are returned as a list (same as v23.0);"+
" 'v20': returns values with repeated key for fields with same alias (same as v20.11)."+
" For more details, see https://github.com/dgraph-io/dgraph/pull/7639").
String())
Expand Down
2 changes: 1 addition & 1 deletion query/outputnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ func (enc *encoder) normalize(fj fastJsonNode) ([]fastJsonNode, error) {
}

for i, slice := range parentSlice {
if x.Config.NormalizeCompatibilityMode == "v23" {
if x.Config.NormalizeCompatibilityMode == "" {
// sort the fastJson list. This will ensure that nodes
// with same attribute name comes together in response
enc.MergeSort(&parentSlice[i])
Expand Down
2 changes: 1 addition & 1 deletion worker/server_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
GraphQLDefaults = `introspection=true; debug=false; extensions=true; poll-interval=1s; ` +
`lambda-url=;`
CacheDefaults = `size-mb=1024; percentage=0,65,35;`
FeatureFlagsDefaults = `normalize-compatibility-mode=v23;`
FeatureFlagsDefaults = ``
)

// ServerState holds the state of the Dgraph server.
Expand Down

0 comments on commit 12718e9

Please sign in to comment.