lib/graphql/schema/union.rb in graphql-1.13.0 vs lib/graphql/schema/union.rb in graphql-1.13.1
- old
+ new
@@ -31,9 +31,11 @@
def all_possible_types
type_memberships.map(&:object_type)
end
+ prepend GraphQL::Schema::Member::CachedGraphQLDefinition::DeprecatedToGraphQL
+
def to_graphql
type_defn = GraphQL::UnionType.new
type_defn.name = graphql_name
type_defn.description = description
type_defn.ast_node = ast_node