You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ObjectType creates GraphQLObjectType from a class
@ObjectType()classQueryType{publicprefix='Hello'
@Field()publicgreeting(): string{return`${this.prefix}, world!`}
@Field()publicoriginal(): string{return`${this.prefix}, world!`}}// @ObjectType creates GraphQLObjectType from a class
@ObjectType()classQueryType2{publicprefix='Hi'
@Field()publicgreeting(): string{return`${this.prefix}, world!`}}// @Schema creates GraphQLSchema from a class.// The class should have a field annotated by @Query decorator.
@Schema()classSchemaType{
@Query()publicquery1: QueryType
@Query()publicquery2: QueryType2}
original remains callable, but now there are no longer any ways of calling the original greeting from QueryType.
The text was updated successfully, but these errors were encountered:
original
remains callable, but now there are no longer any ways of calling the originalgreeting
from QueryType.The text was updated successfully, but these errors were encountered: