Skip to content

5.0.0

Compare
Choose a tag to compare
@lukemurray lukemurray released this 02 Aug 02:11
· 179 commits to master since this release

Make sure to check out the changes 5.0.0-beta1

Breaking Changes

  • Generated schema type name for field sort inputs now include the name of the schema type the field is on to avoid conflicts

Changes

  • IField.AddExtension now returns the IField
  • UseSort() field extension now can take a list of default sort fields e.g.
  • Broadcaster (inbuilt IObservable<TType> you can use for subscriptions) now has a OnUnsubscribe callback
schema.ReplaceField("people",
    ctx => ctx.People,
    "Return a list of people. Optional sorted")
    .UseSort(
        new Sort<Person>((person) => person.Height, SortDirection.ASC),
        new Sort<Person>((person) => person.LastName, SortDirection.ASC)
    );
  • SchemaBuilderOptions now has a OnFieldCreated callback to make changes to fields as SchemaBuilder is building the schema.
  • .contains(string), .startsWith(string), .endsWith(string) & .toLower() / .toUpper() string methods now available in the filter argument expression.

Fixes

  • Fix naming of fields extracted from service calls when those field use convert