Skip to content

Releases: Thinkmill/graphql-ts

@graphql-ts/[email protected]

18 Aug 05:34
161aacb
Compare
Choose a tag to compare

Minor Changes

@graphql-ts/[email protected]

18 Aug 05:34
161aacb
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@graphql-ts/[email protected]

28 Jun 00:13
776eb8d
Compare
Choose a tag to compare

Patch Changes

  • 3663690 Thanks @mitchellhamilton! - Fixed having a union of Args where at least one is nullable without a default value not resulting in an inferred input type that includes undefined in the union.

    graphql.field({
      type: graphql.String,
      args: {
        something: graphql.arg({
          type:
            Math.random() > 0.5 ? graphql.nonNull(graphql.String) : graphql.String
        })
      },
      resolve(source, { something }) {
        const previouslyIncorrectlyAllowedNowError: string | null = something;
        const correct: string | null | undefined = something;
        return "";
      }
    });

@graphql-ts/[email protected]

10 Feb 03:49
331294e
Compare
Choose a tag to compare

Patch Changes

  • 3e4909f Thanks @mitchellhamilton! - Fixed Field<_, _, _, string, _> not being assignable to Field<_, _, _, "literal", _>

@graphql-ts/[email protected]

04 Feb 03:48
052dc81
Compare
Choose a tag to compare

Patch Changes

@graphql-ts/[email protected]

04 Feb 03:48
052dc81
Compare
Choose a tag to compare

Patch Changes

@graphql-ts/[email protected]

22 Oct 05:07
88ced81
Compare
Choose a tag to compare

Minor Changes

  • 5d1c299 Thanks @mitchellhamilton! - Type parameters named RootVal have been renamed to Source and properties named __rootVal have been renamed to __source. This won't require code changes unless you've relied on the __rootVal properties(which you shouldn't).

@graphql-ts/[email protected]

22 Oct 05:07
88ced81
Compare
Choose a tag to compare

Minor Changes

  • 5d1c299 Thanks @mitchellhamilton! - Type parameters named RootVal have been renamed to Source and properties named __rootVal have been renamed to __source. This won't require code changes unless you've relied on the __rootVal properties(which you shouldn't).

  • 232cec8 Thanks @mitchellhamilton! - BaseSchemaInfo has been renamed to BaseSchemaMeta

@graphql-ts/[email protected]

14 Oct 03:25
3aa40b6
Compare
Choose a tag to compare

Minor Changes

@graphql-ts/[email protected]

13 Oct 04:09
814ad77
Compare
Choose a tag to compare

Minor Changes

  • 910d1ed Thanks @mitchellhamilton! - Replaced fields property on InterfaceType with __fields that does not exist at runtime to align with other types

Patch Changes

  • 6c85396 Thanks @mitchellhamilton! - Updated the definition of graphql.union so that the Context of the UnionType returned and the Context passed to resolveType are determined by the Context of the graphql object rather than a union of the Contexts of the union's member types.