Skip to content

Commit 962423b

Browse files
committed
reverse path
1 parent 30935e6 commit 962423b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/FSharp.Data.GraphQL.Server/Execution.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ let private createFieldContext objdef argDefs ctx (info: ExecutionInfo) (path :
234234
Schema = ctx.Schema
235235
Args = args
236236
Variables = ctx.Variables
237-
Path = path }
237+
Path = path |> List.rev }
238238

239239
let private resolveField (execute: ExecuteField) (ctx: ResolveFieldContext) (parentValue: obj) =
240240
if ctx.ExecutionInfo.IsNullable
@@ -574,7 +574,7 @@ let private executeQueryOrMutation (resultSet: (string * ExecutionInfo) []) (ctx
574574
Schema = ctx.Schema
575575
Args = args
576576
Variables = ctx.Variables
577-
Path = path }
577+
Path = path |> List.rev }
578578
let execute = ctx.FieldExecuteMap.GetExecute(ctx.ExecutionPlan.RootDef.Name, info.Definition.Name)
579579
asyncVal {
580580
let! result =
@@ -608,7 +608,7 @@ let private executeSubscription (resultSet: (string * ExecutionInfo) []) (ctx: E
608608
Schema = ctx.Schema
609609
Args = args
610610
Variables = ctx.Variables
611-
Path = fieldPath }
611+
Path = fieldPath |> List.rev }
612612
let onValue v = asyncVal {
613613
match! executeResolvers fieldCtx fieldPath value (toOption v |> AsyncVal.wrap) with
614614
| Ok (data, None, []) -> return NameValueLookup.ofList["data", box <| NameValueLookup.ofList [nameOrAlias, data.Value]] :> Output

0 commit comments

Comments
 (0)