You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then TypeMapping.makeOption providedTypes.[path, tref.Name.Value]
529
529
else
530
530
letgetIntrospectionFields typeName =
531
-
if schemaTypes.ContainsKey(typeName)
532
-
then schemaTypes.[typeName].Fields |> Option.defaultValue [||]
533
-
else failwith $"""Could not find a schema type based on a type reference. The reference is to a "%s{typeName}" type, but that type was not found in the schema types."""
|false,_-> failwith $"""Could not find a schema type based on a type reference. The reference is to a "%s{typeName}" type, but that type was not found in the schema types."""
else failwithf "Could not find schema type based on the query. Type \"%s\" does not exist on the schema definition." typeName
567
+
match schemaTypes.TryGetValue typeNamewith
568
+
|true, schematype -> schematype
569
+
|false,_-> failwithf "Could not find schema type based on the query. Type \"%s\" does not exist on the schema definition." typeName
570
570
letmetadata:ProvidedTypeMetadata ={ Name = itype.Name; Description = itype.Description }
571
571
lettdef= ProvidedRecord.preBuildProvidedType(metadata, Some (upcast baseType))
572
572
providedTypes.Add((path, typeName), tdef)
@@ -643,9 +643,9 @@ module internal Provider =
643
643
|> makeOption
644
644
|_-> failwith "Could not find a schema type based on a type reference. The reference has an invalid or unsupported combination of Name, Kind and OfType fields."
0 commit comments