Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump EntityGraphQL from 5.1.1 to 5.2.0 #758

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 8, 2024

Bumps EntityGraphQL from 5.1.1 to 5.2.0.

Release notes

Sourced from EntityGraphQL's releases.

5.2.0

Changes

  • #347 - The handler for the subscriptions end point added by UseGraphQLWebSockets no longer returns 400 if the request is not a web socket request. Allowing the request to get passed to the next handlers. This allows you to have the same endpoint for queries/mutations and subscriptions.
  • #318 - Support Unicode characters in the string of the filter language
  • Add a net8.0 target output for the base EntityGraphQL library.
  • Make more properties public in nodes like GraphQLCollectionToSingleField to better support customisation in custom directives
  • Added field.Resolve<TService, ...>() to replace ResolveWithService<>(). Recommended to use Resolve(). Release 5.3 will mark ResolveWithService as deprecated and release 6.0 will remove them.
  • Add field.ResolveBulk<TService, TKey, TResult>() to allow you to use services to bulk load data to avoid multiple calls to a service resolve expression that may call an external service in a list result. Example
  • Add schema.AddEnum<TEnum>(typeName, description) to the schema building API
  • Add net8.0 as a target for EntityGraphQL.AspNet project
var schema = SchemaBuilder.FromObject<MyContext>();
schema.UpdateType<Project>(type =>
{
    type.ReplaceField("createdBy", "Get user that created it")
      // normal service to fetch the User object for creator of the Project type
      .ResolveWithService<UserService>((proj, users) => users.GetUserById(proj.CreatedById))
      // Bulk service used to fetch many User objects
      .ResolveBulk<UserService, int, User>(proj => proj.CreatedById, (ids, srv) => srv.GetAllUsers(ids));
});

If you have a query like

{
  # ResolveBulk
  projects {
    # project fields
    name
    id
    # service field - resolved with ResolveBulk expression for all Projects loaded
    createdBy {
      name
    }
  }
ResolveWithService
project(id: 78) {
# project fields
name
id
# service field - resolved with ResolveWithService expression for the single project loaded
createdBy {
name
}
}
}
</tr></table>

... (truncated)

Changelog

Sourced from EntityGraphQL's changelog.

5.2.0

Check release notes for the 5.2.0-beta1 and beta2 below.

Changes

  • #347 - The handler for the subscriptions end point added by UseGraphQLWebSockets no longer returns 400 if the request is not a web socket request. Allowing the request to get passed to the next handlers. This allows you to have the same endpoint for queries/mutations and subscriptions.

Fixes

  • #350 - Index accessors properties (which are methods to dotnet) on types are ignored when using SchemaBuilder. Previously they would fail.
  • #333 - Fixes to method and service calls on interfaces/unions
  • #344 - Support paging field extensions with field.ResolveBulk<TService, TKey, TResult>()
  • Fix bulk resolve services within a List to Single node

5.2.0-beta2

Check release notes for the 5.2.0-beta1 below.

Fixes

  • Fix error when using a service at a query root field that uses First() as friends (List to single pattern). E.g. (ctx, service) => ctx.SomeList.First(i => i.Thing == service.Other)
  • #318 - Fix issue comparing int style fields against float style fields in the filter expression
  • Better error message when comparing different enum types in the filter language
  • Include descriptions for scalars and directives in introspection and schema output
  • Fix issue using the default SchemaBuilderOptions with a mutation method that has a list argument. The argument input type was not being correctly added to the schema. Not an issue if you were already adding the type manually
  • #336 - Fix conversion of non-nullable/nullable types
  • #342 - Fix argument incorrectly being renamed when using [GraphQLField]

Changes

  • #318 - Support Unicode characters in the string of the filter language
  • Support more cases with field.ResolveBulk<TService, TKey, TResult>()
  • Add a net8.0 target output for the base EntityGraphQL library.

5.2.0-beta1

Changes

  • Make more properties public in nodes like GraphQLCollectionToSingleField to better support customisation in custom directives
  • Added field.Resolve<TService, ...>() to replace ResolveWithService<>(). Recommended to use Resolve(). Release 5.3 will mark ResolveWithService as deprecated and release 6.0 will remove them.
  • Add field.ResolveBulk<TService, TKey, TResult>() to allow you to use services to bulk load data to avoid multiple calls to a service resolve expression that may call an external service in a list result. Example
  • Add schema.AddEnum<TEnum>(typeName, description) to the schema building API
  • Add net8.0 as a target for EntityGraphQL.AspNet project
var schema = SchemaBuilder.FromObject<MyContext>();
schema.UpdateType<Project>(type =>
{
    type.ReplaceField("createdBy", "Get user that created it")
</tr></table> 

... (truncated)

Commits
  • 96dce48 rel 5.2
  • 143e39e updatae comment
  • d7817d7 update docs
  • d855259 fix bulk fields within list to single nodes
  • a1ed108 bump dependencies
  • 573675d Merge pull request #351 from EntityGraphQL/dependabot/npm_and_yarn/docs/follo...
  • b859896 Bump follow-redirects from 1.15.4 to 1.15.6 in /docs
  • eb12183 chore: changelog
  • 023cdfb Merge pull request #350 from Pankraty/fix-indexer-introspection
  • 5d71a76 Fix ArgumentException (Incorrect number of arguments supplied for call) when ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [EntityGraphQL](https://github.com/lukemurray/EntityGraphQL) from 5.1.1 to 5.2.0.
- [Release notes](https://github.com/lukemurray/EntityGraphQL/releases)
- [Changelog](https://github.com/EntityGraphQL/EntityGraphQL/blob/master/CHANGELOG.md)
- [Commits](EntityGraphQL/EntityGraphQL@5.1.1...5.2.0)

---
updated-dependencies:
- dependency-name: EntityGraphQL
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Apr 8, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 15, 2024

Superseded by #767.

@dependabot dependabot bot closed this Apr 15, 2024
@dependabot dependabot bot deleted the dependabot/nuget/EntityGraphQL-5.2.0 branch April 15, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants