Skip to content

Commit 65a5009

Browse files
committed
Renamed ObjectListFilter type definition to ObjectListFilterType
1 parent e943a04 commit 65a5009

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/FSharp.Data.GraphQL.Server.Middleware/MiddlewareDefinitions.fs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type internal ObjectListFilterMiddleware<'ObjectType, 'ListType>(reportToMetadat
7171

7272
let compileMiddleware (ctx : SchemaCompileContext) (next : SchemaCompileContext -> unit) =
7373
let modifyFields (object : ObjectDef<'ObjectType>) (fields : FieldDef<'ObjectType> seq) =
74-
let args = [ Define.Input("filter", Nullable ObjectListFilter) ]
74+
let args = [ Define.Input("filter", Nullable ObjectListFilterType) ]
7575
let fields = fields |> Seq.map (fun x -> x.WithArgs(args)) |> List.ofSeq
7676
object.WithFields(fields)
7777
let typesWithListFields =
@@ -93,7 +93,7 @@ type internal ObjectListFilterMiddleware<'ObjectType, 'ListType>(reportToMetadat
9393
|> Seq.map (fun x ->
9494
match x.Name, x.Value with
9595
| "filter", (VariableName variableName) -> Ok (ctx.Variables[variableName] :?> ObjectListFilter)
96-
| "filter", inlineConstant -> ObjectListFilter.CoerceInput (InlineConstant inlineConstant)
96+
| "filter", inlineConstant -> ObjectListFilterType.CoerceInput (InlineConstant inlineConstant)
9797
| _ -> Ok NoFilter)
9898
|> Seq.toList
9999
match filterResults |> splitSeqErrorsList with

src/FSharp.Data.GraphQL.Server.Middleware/SchemaDefinitions.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ let rec private jsonElementToInputValue (element : JsonElement) =
166166
| _ -> raise (NotSupportedException "Unsupported JSON element type")
167167

168168
/// Defines an object list filter for use as an argument for filter list of object fields.
169-
let ObjectListFilter : ScalarDefinition<ObjectListFilter> = {
169+
let ObjectListFilterType : ScalarDefinition<ObjectListFilter> = {
170170
Name = "ObjectListFilter"
171171
Description =
172172
Some

0 commit comments

Comments
 (0)