![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
graphql-ruby-client
Advanced tools
Find the graphql-ruby-client
docs on the GraphQL-Ruby website.
graphql-ruby-client
is available under the LGPLv3 license;
graphql-pro customers are granted a special commercial license.
rake js:install
rake js:test
yarn install
yarn run test
npm link .
1.6.5 (13 Jul 2017)
Schema#types[](type_name)
returns nil
when there's no type named type_name
(it used to raise RuntimeError
). To get an error for missing types, use .fetch
instead, for example:
# Old way:
MySchema.types[type_name] # => may raise RuntimeError
# New way:
MySchema.types.fetch(type_name) # => may raise KeyError
Schema build steps happen in one pass instead of two passes #819 . This means that instrument(:field)
hooks may not access Schema#types
, Schema#possible_types
or Schema#get_field
, since the underlying data hasn't been prepared yet. There's not really a clear upgrade path here. It's a bit of a mess. If you're affected by this, feel free to open an issue and we'll try to find something that works!
Schema#resolve_type
is now called with (abstract_type, obj, ctx)
instead of (obj, ctx)
#834 . To update, add an unused parameter to the beginning of your resolve_type
hook:
MySchema = GraphQL::Schema.define do
# Old way:
resolve_type ->(obj, ctx) { ... }
# New way:
resolve_type ->(type, obj, ctx) { ... }
end
rails g graphql:mutation
will add Mutation boilerplate if it wasn't added already #812InterfaceType
and UnionType
both accept resolve_type ->(obj, ctx) { ... }
functions for type-specific resolution. This function takes precedence over Schema#resolve_type
#829 #834Schema#resolve_type
is called with three arguments, (abstract_type, obj, ctx)
, so you can distinguish object type based on interface or union.Query#operation_name=
may be assigned during query instrumentation #833query.context.add_error(err)
may be used to add query-level errors #833argument(...)
DSL accepts custom keywords #809max_complexity
overrides #812InputObjectType
receives an array as input #803prepare
functions #805as
and prepare
in argument do ... end
blocks #817instrument(:field, ...)
, make sure they're in Schema#types
#819EnumValue
is created #831lazy_resolve
#835ArgumentError
#833FAQs
JavaScript client for graphql-ruby
The npm package graphql-ruby-client receives a total of 58,719 weekly downloads. As such, graphql-ruby-client popularity was classified as popular.
We found that graphql-ruby-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.