Skip to content

Commit

Permalink
Update index.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
renebrandel authored May 5, 2024
1 parent d256171 commit 1e8b5ec
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ const schema = a.schema({
receive: a.subscription()
// subscribes to the 'publish' mutation
.for(a.ref('publish'))
// return value matches the `publish` mutation's return value
.returns(a.ref('Message'))
// subscription handler to set custom filters
.handler(a.handler.custom({entry: './receive.js'}))
// authorization rules as to who can subscribe to the data
Expand Down Expand Up @@ -185,7 +183,6 @@ const schema = a.schema({
receive: a.subscription(['publish'])
// highlight-next-line
.arguments({ name: a.string() })
.returns(a.ref('Channel'))
.authorization(allow => [allow.publicApiKey()])
});
export type Schema = ClientSchema<typeof schema>;
Expand Down Expand Up @@ -223,7 +220,6 @@ const schema = a.schema({
.for(a.ref('publish'))
// highlight-next-line
.arguments({ namePrefix: a.string() })
.returns(a.ref('Message'))
.handler(a.handler.custom({entry: './receive.js'}))
.authorization(allow => [allow.publicApiKey()])
});
Expand Down

0 comments on commit 1e8b5ec

Please sign in to comment.