@@ -366,6 +366,8 @@ directly to test your application.
366
366
367
367
#### Topic prefix
368
368
369
+ **Note **: _this section only applies to "simple subscriptions." _
370
+
369
371
All topics requested from GraphQL are automatically prefixed with
370
372
`postgraphile :`\* to avoid leaking other topics your application may be using
371
373
@@ -477,6 +479,8 @@ Resulting in this GraphQL payload:
477
479
478
480
#### Subscription security
479
481
482
+ ** Note** : _ this section only applies to "simple subscriptions."_
483
+
480
484
By default, any user may subscribe to any topic, whether logged in or not, and
481
485
they will remain subscribed until they close the connection themselves. This can
482
486
cause a number of security issues; so we give you a method to implement security
@@ -535,6 +539,8 @@ terminated.
535
539
536
540
#### Naming your topics
537
541
542
+ ** Note** : _ this section only applies to "simple subscriptions."_
543
+
538
544
You might want to make the topic a combination of things, for example the
539
545
subject type and identifier - e.g. 'channel:123'. If you do this then your
540
546
function could determine which subject the user is attempting to subscribe to,
@@ -544,6 +550,8 @@ that will be published to in the event the user is kicked from the channel, e.g.
544
550
545
551
#### Example walk-through
546
552
553
+ ** Note** : _ this section only applies to "simple subscriptions."_
554
+
547
555
First, set up a ` .postgraphilerc.js ` containing the following:
548
556
549
557
``` js
0 commit comments