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
// comment on table app.users is $$// @interface mode:relational type:kind// @type MEMBER references:members// @type ADMIN references:admins// $$;exportconstTestPlugin=makeExtendSchemaPlugin(()=>{return{typeDefs: gql` extend type User { foo1: String } extend type Member { foo2: String } extend type Admin { foo3: String } `,plans: {User: {// foo1 not in the schema.sqlfoo1(){returnconstant("bar");},},Member: {foo2(){// worksreturnconstant("bar");},},Admin: {foo3(){// worksreturnconstant("bar");},},},};});
That’s coz you’re using extend type which applies to object types; you want extend interface since it’s an interface.
Please file an issue about this; we can be more helpful and throw an error on type mismatch. (Currently the type is never seen so the extension never triggers.)
The text was updated successfully, but these errors were encountered:
Discord context: https://discord.com/channels/489127045289476126/498852330754801666/1292111166235082803
This is the code I tried to write:
The text was updated successfully, but these errors were encountered: