Skip to content

Generated API documentation uses wrong filtering syntax #1205

Closed

Description

@akselw

Bug report

Describe the bug

In the generated API documentation (at /project/{id}/api/default?resource={table_name}), under the heading "SUBSCRIBE TO SPECIFIC ROWS", the following example is shown:

const table_name = supabase
  .from('table_name:column_name.eq.someValue')
  .on('*', payload => {
    console.log('Change received!', payload)
  })
  .subscribe()

But according the documentation here (and actually trying it out), the proper syntax should be:

const table_name = supabase
  .from('table_name:column_name=eq.someValue')
  .on('*', payload => {
    console.log('Change received!', payload)
  })
  .subscribe()

With a = separating the table name and eq, instead of a period.

System information

  • Browser (if applies): Chrome
  • Version of supabase-js: @supabase/[email protected]
  • Version of Node.js: v12.22.1

Activity

  1. added
    bug
    on Apr 19, 2021
  2. kiwicopple commented on Apr 20, 2021

    @kiwicopple
    Member

    Thanks for the bug report @akselw - this is now fixed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions