Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use null filters like 'parent IS NULL' in supabase realtime. #659

Open
2 tasks done
sathishkannan162 opened this issue Sep 4, 2023 · 3 comments
Open
2 tasks done
Labels
enhancement New feature or request

Comments

@sathishkannan162
Copy link

sathishkannan162 commented Sep 4, 2023

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Add any other context about the problem here.

const { createClient } = require('@supabase/supabase-js')

const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_KEY, {})

// Set your custom JWT here
supabase.realtime.setAuth('your-custom-jwt')

const channel = supabase
  .channel('db-changes')
  .on(
    'postgres_changes',
    {
      event: '*',
      schema: 'public',
      table: 'todos',
      filter: 'parent IS NULL',
    },
    (payload) => console.log(payload)
  )
  .subscribe()
@sathishkannan162 sathishkannan162 added the bug Something isn't working label Sep 4, 2023
@sathishkannan162
Copy link
Author

Does supabase have null filters?

@soedirgo soedirgo transferred this issue from supabase/supabase-js Sep 5, 2023
@w3b6x9
Copy link
Member

w3b6x9 commented Sep 5, 2023

Does supabase have null filters?

@sathishkannan162 realtime doesn't currently support is null filters but it's something we can add to the product roadmap. will transfer this to the realtime repo.

@w3b6x9 w3b6x9 transferred this issue from supabase/realtime-js Sep 5, 2023
@sathishkannan162
Copy link
Author

I would love to see this feature. It would reduce lots of unnecessary realtime messages.

@filipecabaco filipecabaco added enhancement New feature or request and removed bug Something isn't working labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants