Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Generates the v1 docs from the old spec

Copple2f77f0b9c753
diff --git a/apps/reference/_supabase_dart/auth-onauthstatechange.mdx b/apps/reference/_supabase_dart/auth-onauthstatechange.mdx
new file mode 100644
index 00000000000..b712417a308
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-onauthstatechange.mdx
@@ -0,0 +1,72 @@
+---
+id: auth-onauthstatechange
+title: "auth.onAuthStateChange()"
+slug: auth-onauthstatechange
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Receive a notification every time an auth event happens.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final subscription = supabase.auth.onAuthStateChange((event, session) {
+ print(session?.user?.id);
+ // handle auth state change
+});
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Listen to auth changes
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final subscription = supabase.auth.onAuthStateChange((event, session) {
+ print(session?.user?.id);
+ // handle auth state change
+});
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-session.mdx b/apps/reference/_supabase_dart/auth-session.mdx
new file mode 100644
index 00000000000..d341cb9c1a5
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-session.mdx
@@ -0,0 +1,66 @@
+---
+id: auth-session
+title: "auth.session()"
+slug: auth-session
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Returns the session data, if there is an active session.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final session = supabase.auth.session();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get the session data
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final session = supabase.auth.session();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-signin.mdx b/apps/reference/_supabase_dart/auth-signin.mdx
new file mode 100644
index 00000000000..6685d8b7cdd
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-signin.mdx
@@ -0,0 +1,124 @@
+---
+id: auth-signin
+title: "auth.signIn()"
+slug: auth-signin
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Log in an existing user, or login via a third-party provider.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signIn(email: '[email protected]', password: 'example-password');
+
+final user = res.data?.user;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- A user can sign up via email, phone number.
+- If you provide `email` without a `password`, the user will be sent a magic link.
+- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
+- Similarly, if you provide `phone` without a `password`, the user will be sent a one time password.
+- If you are looking to sign users in with OAuth in Flutter apps, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider).
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign in with email.
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signIn(email: '[email protected]', password: 'example-password');
+
+final user = res.data?.user;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in with magic link.
+
+If email is provided, but no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signIn(email: '[email protected]');
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Get OAuth sign in URL.
+
+Passing provider parameter to `signIn()` will return a URL to sign your user in via OAuth.
+If you are looking to sign in a user via OAuth on Flutter app, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider).
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signIn(provider: Provider.github);
+
+final url = res.data?.url;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-signinwithprovider.mdx b/apps/reference/_supabase_dart/auth-signinwithprovider.mdx
new file mode 100644
index 00000000000..7b7a7b4466f
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-signinwithprovider.mdx
@@ -0,0 +1,129 @@
+---
+id: auth-signinwithprovider
+title: "auth.signInWithProvider()"
+slug: auth-signinwithprovider
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Signs the user in using third party OAuth providers.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signInWithProvider(Provider.github);
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `auth.signInWithProvider()` is only available on `supabase_flutter`
+- It will open the browser to the relevant login page.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign in with provider.
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signInWithProvider(Provider.github);
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `redirectTo`
+
+Specify the redirect link to bring back the user via deeplink.
+Note that `redirectTo` should be null for Flutter Web.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signInWithProvider(
+ Provider.github,
+ options: AuthOptions(
+ redirectTo: kIsWeb
+ ? null
+ : 'io.supabase.flutter://reset-callback/'),
+);
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With scopes
+
+If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token.
+You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+const { user, session, error } = await supabase.auth.signIn({
+ provider: 'github'
+}, {
+ scopes: 'repo gist notifications'
+})
+const oAuthToken = session.provider_token // use to access provider API
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-signout.mdx b/apps/reference/_supabase_dart/auth-signout.mdx
new file mode 100644
index 00000000000..efa6f614483
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-signout.mdx
@@ -0,0 +1,70 @@
+---
+id: auth-signout
+title: "auth.signOut()"
+slug: auth-signout
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Signs out the current user, if there is a logged in user.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signOut();
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign out
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signOut();
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-signup.mdx b/apps/reference/_supabase_dart/auth-signup.mdx
new file mode 100644
index 00000000000..31845b564e1
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-signup.mdx
@@ -0,0 +1,80 @@
+---
+id: auth-signup
+title: "auth.signUp()"
+slug: auth-signup
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Creates a new user.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signUp('[email protected]', 'example-password');
+
+final user = res.data?.user;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
+- If "Email Confirmations" is turned on, a user is returned but session will be null
+- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned
+- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign up.
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.signUp('[email protected]', 'example-password');
+
+final user = res.data?.user;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign up with third-party providers.
+
+If you are using Flutter, you can sign up with OAuth providers using the [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider) method available on `supabase_flutter`.
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-update.mdx b/apps/reference/_supabase_dart/auth-update.mdx
new file mode 100644
index 00000000000..489e5c3b7a7
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-update.mdx
@@ -0,0 +1,76 @@
+---
+id: auth-update
+title: "auth.update()"
+slug: auth-update
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Updates user data, if there is a logged in user.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.update(
+ UserAttributes(data: {'hello': 'world'})
+);
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+It's generally better to store user data in a table inside your public schema (i.e. `public.users`).
+Use the `update()` method if you have data which rarely changes or is specific only to the logged in user.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update a user's metadata.
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.update(
+ UserAttributes(data: {'hello': 'world'})
+);
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/auth-user.mdx b/apps/reference/_supabase_dart/auth-user.mdx
new file mode 100644
index 00000000000..5ac9e1a4aaa
--- /dev/null
+++ b/apps/reference/_supabase_dart/auth-user.mdx
@@ -0,0 +1,66 @@
+---
+id: auth-user
+title: "auth.user()"
+slug: auth-user
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Returns the user data, if there is a logged in user.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final user = supabase.auth.user();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get the logged in user
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final user = supabase.auth.user();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/containedby.mdx b/apps/reference/_supabase_dart/containedby.mdx
new file mode 100644
index 00000000000..73983f98edc
--- /dev/null
+++ b/apps/reference/_supabase_dart/containedby.mdx
@@ -0,0 +1,145 @@
+---
+id: containedby
+title: ".containedBy()"
+slug: containedby
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .containedBy('main_exports', ['orks', 'surveillance', 'evil'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/contains.mdx b/apps/reference/_supabase_dart/contains.mdx
new file mode 100644
index 00000000000..fb9a152e226
--- /dev/null
+++ b/apps/reference/_supabase_dart/contains.mdx
@@ -0,0 +1,145 @@
+---
+id: contains
+title: ".contains()"
+slug: contains
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .contains('main_exports', ['oil'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .contains('main_exports', ['oil'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .contains('main_exports', ['oil'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .contains('main_exports', ['oil'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .contains('main_exports', ['oil'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/delete.mdx b/apps/reference/_supabase_dart/delete.mdx
new file mode 100644
index 00000000000..4193dafc50d
--- /dev/null
+++ b/apps/reference/_supabase_dart/delete.mdx
@@ -0,0 +1,75 @@
+---
+id: delete
+title: "Delete data: delete()"
+slug: delete
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs a DELETE on the table.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .match({ 'id': 666 })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `delete()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to delete.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Delete records
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .match({ 'id': 666 })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/eq.mdx b/apps/reference/_supabase_dart/eq.mdx
new file mode 100644
index 00000000000..de5e74fb445
--- /dev/null
+++ b/apps/reference/_supabase_dart/eq.mdx
@@ -0,0 +1,146 @@
+---
+id: eq
+title: ".eq()"
+slug: eq
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` exactly matches the specified `value`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The shire')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The shire')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .eq('name', 'San Francisco')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .eq('name', 'Mordor')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .eq('name', 'San Francisco')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/filter.mdx b/apps/reference/_supabase_dart/filter.mdx
new file mode 100644
index 00000000000..6d0db0b8a19
--- /dev/null
+++ b/apps/reference/_supabase_dart/filter.mdx
@@ -0,0 +1,176 @@
+---
+id: filter
+title: ".filter()"
+slug: filter
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose `column` satisfies the filter.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .filter('name', 'in', '("Paris","Tokyo")')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work.
+ ```dart
+ .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} and 'cs' for contains.
+ .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column.
+ .filter('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter.
+ .filter('id','cs','{${mylist.join(',')}}') // You can insert a Dart array list.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .filter('name', 'in', '("Paris","Tokyo")')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .filter('name', 'in', '("Paris","Tokyo")')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .filter('name', 'in', '("Paris","Tokyo")')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .filter('name', 'in', '("Paris","Tokyo")')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Filter embedded resources
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, countries ( name )')
+ .filter('countries.name', 'in', '("France","Japan")')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/getsubscriptions.mdx b/apps/reference/_supabase_dart/getsubscriptions.mdx
new file mode 100644
index 00000000000..020450cc2d4
--- /dev/null
+++ b/apps/reference/_supabase_dart/getsubscriptions.mdx
@@ -0,0 +1,66 @@
+---
+id: getsubscriptions
+title: "getSubscriptions()"
+slug: getsubscriptions
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Returns an array of all your subscriptions.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final subscriptions = supabase.getSubscriptions();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get all subscriptions
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final subscriptions = supabase.getSubscriptions();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/gt.mdx b/apps/reference/_supabase_dart/gt.mdx
new file mode 100644
index 00000000000..a90f5b4d070
--- /dev/null
+++ b/apps/reference/_supabase_dart/gt.mdx
@@ -0,0 +1,146 @@
+---
+id: gt
+title: ".gt()"
+slug: gt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is greater than the specified `value`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .gt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .gt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .gt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/gte.mdx b/apps/reference/_supabase_dart/gte.mdx
new file mode 100644
index 00000000000..417c42914eb
--- /dev/null
+++ b/apps/reference/_supabase_dart/gte.mdx
@@ -0,0 +1,146 @@
+---
+id: gte
+title: ".gte()"
+slug: gte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .gte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .gte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .gte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/ilike.mdx b/apps/reference/_supabase_dart/ilike.mdx
new file mode 100644
index 00000000000..940fd0e1ed7
--- /dev/null
+++ b/apps/reference/_supabase_dart/ilike.mdx
@@ -0,0 +1,146 @@
+---
+id: ilike
+title: ".ilike()"
+slug: ilike
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive).
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .ilike('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .ilike('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .ilike('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .ilike('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .ilike('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/in_.mdx b/apps/reference/_supabase_dart/in_.mdx
new file mode 100644
index 00000000000..920523b1524
--- /dev/null
+++ b/apps/reference/_supabase_dart/in_.mdx
@@ -0,0 +1,148 @@
+---
+id: in_
+title: ".in_()"
+slug: in_
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is found on the specified `values`.
+
+`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .in_('name', ['Rio de Janeiro', 'San Francisco'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .in_('name', ['Rio de Janeiro', 'San Francisco'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .in_('name', ['Rio de Janeiro', 'San Francisco'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .in_('name', ['Rio de Janeiro', 'San Francisco'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .in_('name', ['Rio de Janeiro', 'San Francisco'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/index.mdx b/apps/reference/_supabase_dart/index.mdx
new file mode 100644
index 00000000000..454faa9a369
--- /dev/null
+++ b/apps/reference/_supabase_dart/index.mdx
@@ -0,0 +1,12 @@
+---
+id: index
+title: "Getting started"
+slug: getting-started
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+Supabase Dart.
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/initializing.mdx b/apps/reference/_supabase_dart/initializing.mdx
new file mode 100644
index 00000000000..4ad3f59a035
--- /dev/null
+++ b/apps/reference/_supabase_dart/initializing.mdx
@@ -0,0 +1,84 @@
+---
+id: initializing
+title: "Initializing"
+slug: initializing
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+## Dart
+You can initialize a new Supabase client using the `SupabaseClient()` method.
+
+The Supabase client is your entrypoint to the rest of the Supabase functionality
+and is the easiest way to interact with everything we offer within the Supabase ecosystem.
+
+
+## Flutter
+
+For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Dart SupabaseClient()
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key');
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Flutter initialize()
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart title="main.dart"
+Future<void> main() async {
+ await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key');
+ runApp(MyApp());
+}
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/insert.mdx b/apps/reference/_supabase_dart/insert.mdx
new file mode 100644
index 00000000000..c2b43055e7a
--- /dev/null
+++ b/apps/reference/_supabase_dart/insert.mdx
@@ -0,0 +1,102 @@
+---
+id: insert
+title: "Create data: insert()"
+slug: insert
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs an INSERT into the table.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .insert([
+ {'name': 'The Shire', 'country_id': 554}
+ ]).execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- By default, every time you run `insert()`, the client library will make a `select` to return the full record.
+This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation.
+If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create a record
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .insert([
+ {'name': 'The Shire', 'country_id': 554}
+ ]).execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Bulk create
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .insert([
+ {'name': 'The Shire', 'country_id': 554},
+ {'name': 'Rohan', 'country_id': 555},
+ ]).execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/installing.mdx b/apps/reference/_supabase_dart/installing.mdx
new file mode 100644
index 00000000000..d731749f757
--- /dev/null
+++ b/apps/reference/_supabase_dart/installing.mdx
@@ -0,0 +1,32 @@
+---
+id: installing
+title: "Installing"
+slug: installing
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+## Dart
+
+Dart libraries are built and supported by the community.
+
+```bash
+dart pub add supabase
+```
+
+Find the source code on [GitHub](https://github.com/supabase/supabase-dart).
+
+## Flutter
+
+For Flutter project, you can use [supabase_flutter](https://github.com/supabase/supabase-flutter).
+
+```bash
+flutter pub add supabase_flutter
+```
+
+`supabase_flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks coming back from magic link verifications.
+If you are creating a Flutter application, we recommend using `supabase_flutter` instead of `supabase`.
+
+For the most part `supabase_flutter` shares the same API as `supabase` with few exceptions such as initialization or OAuth sign in.
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/invoke.mdx b/apps/reference/_supabase_dart/invoke.mdx
new file mode 100644
index 00000000000..d533cd143ca
--- /dev/null
+++ b/apps/reference/_supabase_dart/invoke.mdx
@@ -0,0 +1,135 @@
+---
+id: invoke
+title: "invoke()"
+slug: invoke
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Invokes a Supabase Function. See the [guide](/docs/guides/api) for details on writing Functions.
+
+:::caution
+
+Supabase Functions are in Experimental release until 1 August 2022. There will breaking changes. Do not use them in Production.
+
+:::
+
+We have released Supabase Functions to gather feedback. You're welcome to try them out and send us feedback but we strongly advise against using them for anything in production.
+There will be breaking changes with no notice.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'});
+final data = res.data;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Requires an Authorization header.
+- Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Basic invocation.
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'});
+final data = res.data;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Specifying response type.
+
+By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabaseClient.functions.invoke(
+ 'hello',
+ body: {'foo': 'baa'},
+ responseType: ResponseType.text,
+);
+final data = res.data;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Parsing custom headers.
+
+Any `headers` will be passed through to the function. A common pattern is to pass a logged-in user's JWT token as an Authorization header.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabaseClient.functions.invoke(
+ 'hello',
+ body: {'foo': 'baa'},
+ headers: {
+ 'Authorization': 'Bearer ${supabase.auth.session()?.access_token}'
+ },
+);
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/is_.mdx b/apps/reference/_supabase_dart/is_.mdx
new file mode 100644
index 00000000000..99743c23867
--- /dev/null
+++ b/apps/reference/_supabase_dart/is_.mdx
@@ -0,0 +1,148 @@
+---
+id: is_
+title: ".is_()"
+slug: is_
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+A check for exact equality (null, true, false), finds all rows whose value on the stated `column` exactly match the specified `value`.
+
+`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .is_('name', null)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .is_('name', null)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .is_('name', null)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .is_('name', null)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .is_('name', null)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/like.mdx b/apps/reference/_supabase_dart/like.mdx
new file mode 100644
index 00000000000..e2a326d1d45
--- /dev/null
+++ b/apps/reference/_supabase_dart/like.mdx
@@ -0,0 +1,191 @@
+---
+id: like
+title: ".like()"
+slug: like
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive).
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .like('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ pattern
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The pattern to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .like('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .like('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .like('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .like('name', '%la%')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/limit.mdx b/apps/reference/_supabase_dart/limit.mdx
new file mode 100644
index 00000000000..5d8444cce5a
--- /dev/null
+++ b/apps/reference/_supabase_dart/limit.mdx
@@ -0,0 +1,99 @@
+---
+id: limit
+title: "limit()"
+slug: limit
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Limits the result with the specified count.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With embedded resources
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, cities(name)')
+ .eq('name', 'United States')
+ .limit(1, foreignTable: 'cities' )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/lt.mdx b/apps/reference/_supabase_dart/lt.mdx
new file mode 100644
index 00000000000..e381cc0db22
--- /dev/null
+++ b/apps/reference/_supabase_dart/lt.mdx
@@ -0,0 +1,146 @@
+---
+id: lt
+title: ".lt()"
+slug: lt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is less than the specified `value`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .lt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .lt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .lt('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/lte.mdx b/apps/reference/_supabase_dart/lte.mdx
new file mode 100644
index 00000000000..9223bac9cac
--- /dev/null
+++ b/apps/reference/_supabase_dart/lte.mdx
@@ -0,0 +1,191 @@
+---
+id: lte
+title: ".lte()"
+slug: lte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is less than or equal to the specified `value`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .lte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .lte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .lte('country_id', 250)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/match.mdx b/apps/reference/_supabase_dart/match.mdx
new file mode 100644
index 00000000000..f8554a671a9
--- /dev/null
+++ b/apps/reference/_supabase_dart/match.mdx
@@ -0,0 +1,146 @@
+---
+id: match
+title: ".match()"
+slug: match
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose columns match the specified `query` object.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .match({'name': 'Beijing', 'country_id': 156})
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .match({'name': 'Beijing', 'country_id': 156})
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .match({'name': 'Beijing', 'country_id': 156})
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .match({'name': 'Beijing', 'country_id': 156})
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .match({'name': 'Beijing', 'country_id': 156})
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/neq.mdx b/apps/reference/_supabase_dart/neq.mdx
new file mode 100644
index 00000000000..10e6a849f34
--- /dev/null
+++ b/apps/reference/_supabase_dart/neq.mdx
@@ -0,0 +1,146 @@
+---
+id: neq
+title: ".neq()"
+slug: neq
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` doesn't match the specified `value`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .neq('name', 'The shire')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .neq('name', 'The shire')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .neq('name', 'San Francisco')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .neq('name', 'Mordor')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities')
+ .neq('name', 'Lagos')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/not.mdx b/apps/reference/_supabase_dart/not.mdx
new file mode 100644
index 00000000000..28029720717
--- /dev/null
+++ b/apps/reference/_supabase_dart/not.mdx
@@ -0,0 +1,155 @@
+---
+id: not
+title: ".not()"
+slug: not
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows which doesn't satisfy the filter.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .not('name', 'eq', 'Paris')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values.
+
+ ```dart
+ .not('name','eq','Paris')
+ .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains.
+ .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column.
+ .not('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter.
+ .not('id','in','(${mylist.join(',')})') // You can insert a Dart list array.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .not('name', 'eq', 'Paris')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Mordor' })
+ .not('name', 'eq', 'Paris')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .delete()
+ .not('name', 'eq', 'Paris')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_cities)
+ .not('name', 'eq', 'Paris')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/or.mdx b/apps/reference/_supabase_dart/or.mdx
new file mode 100644
index 00000000000..ebdde74e4c3
--- /dev/null
+++ b/apps/reference/_supabase_dart/or.mdx
@@ -0,0 +1,105 @@
+---
+id: or
+title: ".or()"
+slug: or
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows satisfying at least one of the filters.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .or('id.eq.20,id.eq.30')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values.
+
+ ```dart
+ .or('id.in.(6,7),arraycol.cs.{"a","b"}') // Use Postgres list () and 'in' for in_ filter. Array {} and 'cs' for contains.
+ .or('id.in.(${mylist.join(',')}),arraycol.cs.{${mylistArray.join(',')}}') // You can insert a Dart list for list or array column.
+ .or('id.in.(${mylist.join(',')}),rangecol.cs.(${mylistRange.join(',')}]') // You can insert a Dart list for list or range column.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .or('id.eq.20,id.eq.30')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Use `or` with `and`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/order.mdx b/apps/reference/_supabase_dart/order.mdx
new file mode 100644
index 00000000000..0ae7d8ad73b
--- /dev/null
+++ b/apps/reference/_supabase_dart/order.mdx
@@ -0,0 +1,99 @@
+---
+id: order
+title: "order()"
+slug: order
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Orders the result with the specified column.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .order('id', ascending: false )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .order('id', ascending: false )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With embedded resources
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, cities(name)')
+ .eq('name', 'United States')
+ .order('name', foreignTable: 'cities')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/overlaps.mdx b/apps/reference/_supabase_dart/overlaps.mdx
new file mode 100644
index 00000000000..a5e9e66c2a9
--- /dev/null
+++ b/apps/reference/_supabase_dart/overlaps.mdx
@@ -0,0 +1,145 @@
+---
+id: overlaps
+title: ".overlaps()"
+slug: overlaps
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .overlaps('main_exports', ['computers', 'minerals'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .overlaps('main_exports', ['computers', 'minerals'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .overlaps('main_exports', ['computers', 'minerals'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .overlaps('main_exports', ['computers', 'minerals'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .overlaps('main_exports', ['computers', 'minerals'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/range.mdx b/apps/reference/_supabase_dart/range.mdx
new file mode 100644
index 00000000000..31700fe1b2d
--- /dev/null
+++ b/apps/reference/_supabase_dart/range.mdx
@@ -0,0 +1,74 @@
+---
+id: range
+title: "range()"
+slug: range
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Limits the result to rows within the specified range, inclusive.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .range(0,3)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .range(0,3)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/rangeadjacent.mdx b/apps/reference/_supabase_dart/rangeadjacent.mdx
new file mode 100644
index 00000000000..5f2ccb2f1a7
--- /dev/null
+++ b/apps/reference/_supabase_dart/rangeadjacent.mdx
@@ -0,0 +1,145 @@
+---
+id: rangeadjacent
+title: ".rangeAdjacent()"
+slug: rangeadjacent
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/rangegt.mdx b/apps/reference/_supabase_dart/rangegt.mdx
new file mode 100644
index 00000000000..c2b80008ac4
--- /dev/null
+++ b/apps/reference/_supabase_dart/rangegt.mdx
@@ -0,0 +1,145 @@
+---
+id: rangegt
+title: ".rangeGt()"
+slug: rangegt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .rangeGt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .rangeGt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .rangeGt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/rangegte.mdx b/apps/reference/_supabase_dart/rangegte.mdx
new file mode 100644
index 00000000000..b03452ee437
--- /dev/null
+++ b/apps/reference/_supabase_dart/rangegte.mdx
@@ -0,0 +1,145 @@
+---
+id: rangegte
+title: ".rangeGte()"
+slug: rangegte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .rangeGte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .rangeGte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .rangeGte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/rangelt.mdx b/apps/reference/_supabase_dart/rangelt.mdx
new file mode 100644
index 00000000000..0889d73a74e
--- /dev/null
+++ b/apps/reference/_supabase_dart/rangelt.mdx
@@ -0,0 +1,145 @@
+---
+id: rangelt
+title: ".rangeLt()"
+slug: rangelt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .rangeLt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .rangeLt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .rangeLt('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/rangelte.mdx b/apps/reference/_supabase_dart/rangelte.mdx
new file mode 100644
index 00000000000..94712f7b09a
--- /dev/null
+++ b/apps/reference/_supabase_dart/rangelte.mdx
@@ -0,0 +1,145 @@
+---
+id: rangelte
+title: ".rangeLte()"
+slug: rangelte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .update({ 'name': 'Mordor' })
+ .rangeLte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .delete()
+ .rangeLte('population_range_millions', '[150, 250]')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+// Only valid if the Stored Procedure returns a table type.
+final res = await supabase
+ .rpc('echo_all_countries')
+ .rangeLte('population_range_millions', [150, 250])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/removesubscription.mdx b/apps/reference/_supabase_dart/removesubscription.mdx
new file mode 100644
index 00000000000..b8fca1f76b7
--- /dev/null
+++ b/apps/reference/_supabase_dart/removesubscription.mdx
@@ -0,0 +1,67 @@
+---
+id: removesubscription
+title: "removeSubscription()"
+slug: removesubscription
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Removes an active subscription and returns the number of open connections.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase.removeSubscription(mySubscription);
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Remove a subscription
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase.removeSubscription(mySubscription);
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/reset-password-email.mdx b/apps/reference/_supabase_dart/reset-password-email.mdx
new file mode 100644
index 00000000000..9f23140dac9
--- /dev/null
+++ b/apps/reference/_supabase_dart/reset-password-email.mdx
@@ -0,0 +1,114 @@
+---
+id: reset-password-email
+title: "Reset Password (Email)"
+slug: reset-password-email
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Sends a reset request to an email address.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.api.resetPasswordForEmail('[email protected]');
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+Sends a reset request to an email address.
+
+When the user clicks the reset link in the email they will be forwarded to:
+
+`<SITE_URL>#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery`
+
+Your app must detect `type=recovery` in the fragment and display a password reset form to the user.
+
+You should then use the access_token in the url and new password to update the user as follows:
+
+```dart
+final res = await supabase.auth.api.updateUser(
+ accessToken,
+ UserAttributes(password: 'NEW_PASSWORD'),
+);
+```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Reset password
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase.auth.api.resetPasswordForEmail('[email protected]');
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Reset password for Flutter
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+You can pass `redirectTo` to open the app via deeplink when user opens the password reset email.
+```dart
+final res = await supabase.auth.api.resetPasswordForEmail(
+ options: AuthOptions(redirectTo: kIsWeb
+ ? null
+ : 'io.supabase.flutter://reset-callback/'),
+);
+
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/rpc.mdx b/apps/reference/_supabase_dart/rpc.mdx
new file mode 100644
index 00000000000..e8db06a63de
--- /dev/null
+++ b/apps/reference/_supabase_dart/rpc.mdx
@@ -0,0 +1,119 @@
+---
+id: rpc
+title: "Stored Procedures: rpc()"
+slug: rpc
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+You can call stored procedures as a "Remote Procedure Call".
+
+That's a fancy way of saying that you can put some logic into your database then call it from anywhere.
+It's especially useful when the logic rarely changes - like password resets and updates.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .rpc('hello_world')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Call a stored procedure
+
+This is an example invoking a stored procedure.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .rpc('hello_world')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With Parameters
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .rpc('echo_city', params: { 'name': 'The Shire' })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With count option
+
+You can specify a count option to get the row count along with your data.
+Allowed values for count option are `exact`, `planned` and `estimated`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .rpc('hello_world')
+ .execute(count: CountOption.exact);
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/select.mdx b/apps/reference/_supabase_dart/select.mdx
new file mode 100644
index 00000000000..59d67435a57
--- /dev/null
+++ b/apps/reference/_supabase_dart/select.mdx
@@ -0,0 +1,276 @@
+---
+id: select
+title: "Fetch data: select()"
+slug: select
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs vertical filtering with SELECT.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select()
+ .execute();
+
+final data = res.data;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data.
+- `select()` can be combined with [Modifiers](/docs/reference/dart/using-modifiers)
+- `select()` can be combined with [Filters](/docs/reference/dart/using-filters)
+- If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465).
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Getting your data
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select()
+ .execute();
+
+final data = res.data;
+final error = res.error;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Selecting specific columns
+
+You can select specific fields from your tables.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Query foreign tables
+
+If your database has relationships, you can query related tables too.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('countries')
+ .select('''
+ name,
+ cities (
+ name
+ )
+ ''')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Query the same foreign table multiple times
+
+Sometimes you will need to query the same foreign table twice.
+In this case, you can use the name of the joined column to identify
+which join you intend to use. For convenience, you can also give an
+alias for each column. For example, if we had a shop of products,
+and we wanted to get the supplier and the purchaser at the same time
+(both in the users) table:
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('products')
+ .select('''
+ id,
+ supplier:supplier_id ( name ),
+ purchaser:purchaser_id ( name )
+ ''')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Filtering with inner joins
+
+If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted
+to select all rows in a `message` table which belong to a user with the `username` "Jane":
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('messages')
+ .select('*, users!inner(*)')
+ .eq('users.username', 'Jane')
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Querying with count option
+
+You can get the number of rows by using the count option.
+Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count).
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name')
+ .execute(count: CountOption.exact);
+
+final count = res.count;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Querying JSON data
+
+If you have data inside of a JSONB column, you can apply select
+and query filters to the data values. Postgres offers a
+[number of operators](https://www.postgresql.org/docs/current/functions-json.html)
+for querying JSON data. Also see
+[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('users')
+ .select('''
+ id, name,
+ address->street
+ ''')
+ .eq('address->postcode', 90210)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Return data as CSV
+
+By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('users')
+ .select()
+ .csv()
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/single.mdx b/apps/reference/_supabase_dart/single.mdx
new file mode 100644
index 00000000000..42d8c77a6a2
--- /dev/null
+++ b/apps/reference/_supabase_dart/single.mdx
@@ -0,0 +1,74 @@
+---
+id: single
+title: "single()"
+slug: single
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .single()
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .single()
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-createbucket.mdx b/apps/reference/_supabase_dart/storage-createbucket.mdx
new file mode 100644
index 00000000000..9387f42f204
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-createbucket.mdx
@@ -0,0 +1,73 @@
+---
+id: storage-createbucket
+title: "createBucket()"
+slug: storage-createbucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Creates a new Storage bucket
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .createBucket('avatars');
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `insert`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .createBucket('avatars');
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-deletebucket.mdx b/apps/reference/_supabase_dart/storage-deletebucket.mdx
new file mode 100644
index 00000000000..c4e0ea96b50
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-deletebucket.mdx
@@ -0,0 +1,73 @@
+---
+id: storage-deletebucket
+title: "deleteBucket()"
+slug: storage-deletebucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. You must first `empty()` the bucket.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .deleteBucket('avatars');
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select` and `delete`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Delete bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .deleteBucket('avatars');
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-emptybucket.mdx b/apps/reference/_supabase_dart/storage-emptybucket.mdx
new file mode 100644
index 00000000000..74dda8e5615
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-emptybucket.mdx
@@ -0,0 +1,73 @@
+---
+id: storage-emptybucket
+title: "emptyBucket()"
+slug: storage-emptybucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Removes all objects inside a single bucket.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .emptyBucket('avatars');
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select`
+ - `objects` permissions: `select` and `delete`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Empty bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .emptyBucket('avatars');
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-createsignedurl.mdx b/apps/reference/_supabase_dart/storage-from-createsignedurl.mdx
new file mode 100644
index 00000000000..377b4e163b8
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-createsignedurl.mdx
@@ -0,0 +1,79 @@
+---
+id: storage-from-createsignedurl
+title: "from.createSignedUrl()"
+slug: storage-from-createsignedurl
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .createSignedUrl('avatar1.png', 60);
+
+final signedURL = res.data;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create Signed URL
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .createSignedUrl('avatar1.png', 60);
+
+final signedURL = res.data;
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-download.mdx b/apps/reference/_supabase_dart/storage-from-download.mdx
new file mode 100644
index 00000000000..1c2ee1926fa
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-download.mdx
@@ -0,0 +1,75 @@
+---
+id: storage-from-download
+title: "from.download()"
+slug: storage-from-download
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Downloads a file.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .download('avatar1.png');
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Download file
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .download('avatar1.png');
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-getpublicurl.mdx b/apps/reference/_supabase_dart/storage-from-getpublicurl.mdx
new file mode 100644
index 00000000000..c75e36be61e
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-getpublicurl.mdx
@@ -0,0 +1,80 @@
+---
+id: storage-from-getpublicurl
+title: "from.getPublicUrl()"
+slug: storage-from-getpublicurl
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieve URLs for assets in public buckets
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = supabase
+ .storage
+ .from('public-bucket')
+ .getPublicUrl('avatar1.png');
+
+final publicURL = res.data;
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public"
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Returns the URL for an asset in a public bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = supabase
+ .storage
+ .from('public-bucket')
+ .getPublicUrl('avatar1.png');
+
+final publicURL = res.data;
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-list.mdx b/apps/reference/_supabase_dart/storage-from-list.mdx
new file mode 100644
index 00000000000..8aac0be4e0c
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-list.mdx
@@ -0,0 +1,75 @@
+---
+id: storage-from-list
+title: "from.list()"
+slug: storage-from-list
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Lists all the files within a bucket.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .list();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### List files in a bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .list();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-move.mdx b/apps/reference/_supabase_dart/storage-from-move.mdx
new file mode 100644
index 00000000000..d9becf49156
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-move.mdx
@@ -0,0 +1,75 @@
+---
+id: storage-from-move
+title: "from.move()"
+slug: storage-from-move
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Moves an existing file, optionally renaming it at the same time.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .move('public/avatar1.png', 'private/avatar2.png');
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `update` and `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Move file
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .move('public/avatar1.png', 'private/avatar2.png');
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-remove.mdx b/apps/reference/_supabase_dart/storage-from-remove.mdx
new file mode 100644
index 00000000000..c0d41df9af9
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-remove.mdx
@@ -0,0 +1,75 @@
+---
+id: storage-from-remove
+title: "from.remove()"
+slug: storage-from-remove
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Deletes files within the same bucket
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .remove(['avatar1.png']);
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `delete` and `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Delete file
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .from('avatars')
+ .remove(['avatar1.png']);
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-update.mdx b/apps/reference/_supabase_dart/storage-from-update.mdx
new file mode 100644
index 00000000000..b184b8aa3b2
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-update.mdx
@@ -0,0 +1,83 @@
+---
+id: storage-from-update
+title: "from.update()"
+slug: storage-from-update
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Replaces an existing file at the specified path with a new one.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final avatarFile = File('path/to/file');
+final res = await supabase
+ .storage
+ .from('avatars')
+ .update('public/avatar1.png', avatarFile, fileOptions: FileOptions(
+ cacheControl: '3600',
+ upsert: false
+ ));
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `update` and `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update file
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final avatarFile = File('path/to/file');
+final res = await supabase
+ .storage
+ .from('avatars')
+ .update('public/avatar1.png', avatarFile, fileOptions: FileOptions(
+ cacheControl: '3600',
+ upsert: false
+ ));
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-from-upload.mdx b/apps/reference/_supabase_dart/storage-from-upload.mdx
new file mode 100644
index 00000000000..d5ab185be60
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-from-upload.mdx
@@ -0,0 +1,152 @@
+---
+id: storage-from-upload
+title: "from.upload()"
+slug: storage-from-upload
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Uploads a file to an existing bucket.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final avatarFile = File('path/to/file');
+final res = await supabase
+ .storage
+ .from('avatars')
+ .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions(
+ cacheControl: '3600',
+ upsert: false
+ ));
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fileBody
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The body of the file to be stored in the bucket.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fileOptions
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>FileOptions</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+HTTP headers.
+`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.
+`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.
+`upsert`: boolean, whether to perform an upsert.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `insert`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Upload file
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final avatarFile = File('path/to/file');
+final res = await supabase
+ .storage
+ .from('avatars')
+ .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions(
+ cacheControl: '3600',
+ upsert: false
+ ));
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-getbucket.mdx b/apps/reference/_supabase_dart/storage-getbucket.mdx
new file mode 100644
index 00000000000..2dcef67779c
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-getbucket.mdx
@@ -0,0 +1,97 @@
+---
+id: storage-getbucket
+title: "getBucket()"
+slug: storage-getbucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves the details of an existing Storage bucket.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .getBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ id
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The unique identifier of the bucket you would like to retrieve.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .getBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-listbuckets.mdx b/apps/reference/_supabase_dart/storage-listbuckets.mdx
new file mode 100644
index 00000000000..b79aad2ff67
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-listbuckets.mdx
@@ -0,0 +1,73 @@
+---
+id: storage-listbuckets
+title: "listBuckets()"
+slug: storage-listbuckets
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves the details of all Storage buckets within an existing product.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .listBuckets()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### List buckets
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .listBuckets()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/storage-updatebucket.mdx b/apps/reference/_supabase_dart/storage-updatebucket.mdx
new file mode 100644
index 00000000000..47e1fc79a50
--- /dev/null
+++ b/apps/reference/_supabase_dart/storage-updatebucket.mdx
@@ -0,0 +1,73 @@
+---
+id: storage-updatebucket
+title: "updateBucket()"
+slug: storage-updatebucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Updates a new Storage bucket
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .updateBucket('avatars', { public: false });
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `update`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update bucket
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .storage
+ .updateBucket('avatars', { public: false });
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/stream.mdx b/apps/reference/_supabase_dart/stream.mdx
new file mode 100644
index 00000000000..1d103a76885
--- /dev/null
+++ b/apps/reference/_supabase_dart/stream.mdx
@@ -0,0 +1,148 @@
+---
+id: stream
+title: "stream()"
+slug: stream
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Notifies of data at the queried table.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase
+ .from('countries')
+ .stream(['id'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `stream()` will emit the initial data as well as any further change on the database as `Stream` of `List<Map<String, dynamic>>` by combining Postgrest and Realtime.
+- Takes a list of primary key columns as its argument.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Listening to a specific table
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase
+ .from('countries')
+ .stream(['id'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to a specific rows within a table
+
+You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
+This syntax is the as how you can filter data in Realtime
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase
+ .from('countries:id=eq.120')
+ .stream(['id'])
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `order()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase
+ .from('countries')
+ .stream(['id'])
+ .order('name', ascending: false)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `limit()`
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+supabase
+ .from('countries')
+ .stream(['id'])
+ .order('name', ascending: false)
+ .limit(10)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/subscribe.mdx b/apps/reference/_supabase_dart/subscribe.mdx
new file mode 100644
index 00000000000..a5cfbb66579
--- /dev/null
+++ b/apps/reference/_supabase_dart/subscribe.mdx
@@ -0,0 +1,237 @@
+---
+id: subscribe
+title: "on().subscribe()"
+slug: subscribe
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Subscribe to realtime changes in your database.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.all, (payload) {
+ // Handle realtime payload
+ })
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime).
+- If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Listen to all database changes
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.all, (payload) {
+ // Handle realtime payload
+ })
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to a specific table
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.all, (payload) {
+ // Handle realtime payload
+ })
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to inserts
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.insert, (payload) {
+ // Handle realtime payload
+ })
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to updates
+
+By default, Supabase will send only the updated record. If you want to receive the previous values as well you can
+enable full replication for the table you are listening too:
+
+```sql
+alter table "your_table" replica identity full;
+```
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.update, (payload) {
+ // Handle realtime payload
+ })
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to deletes
+
+By default, Supabase does not send deleted records. If you want to receive the deleted record you can
+enable full replication for the table you are listening too:
+
+```sql
+alter table "your_table" replica identity full;
+```
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.delete, (payload) {
+ // Handle realtime payload
+ })
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to multiple events
+
+You can chain listeners if you want to listen to multiple events for each table.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries')
+ .on(SupabaseEventTypes.insert, handleInsert)
+ .on(SupabaseEventTypes.delete, handleDelete)
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to row level changes
+
+You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final mySubscription = supabase
+ .from('countries:id=eq.200')
+ .on(SupabaseEventTypes.update, handleRecordUpdated)
+ .subscribe();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/textsearch.mdx b/apps/reference/_supabase_dart/textsearch.mdx
new file mode 100644
index 00000000000..ec605003ac6
--- /dev/null
+++ b/apps/reference/_supabase_dart/textsearch.mdx
@@ -0,0 +1,147 @@
+---
+id: textsearch
+title: ".textSearch()"
+slug: textsearch
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose tsvector value on the stated `column` matches to_tsquery(query).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Text search
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', "'fat' & 'cat'",
+ config: 'english'
+ )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Basic normalization
+
+Uses PostgreSQL's `plainto_tsquery` function.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', "'fat' & 'cat'",
+ type: TextSearchType.plain,
+ config: 'english'
+ )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Full normalization
+
+Uses PostgreSQL's `phraseto_tsquery` function.
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', "'fat' & 'cat'",
+ type: TextSearchType.phrase,
+ config: 'english'
+ )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Full normalization
+
+Uses PostgreSQL's `websearch_to_tsquery` function.
+This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used
+with advanced operators.
+
+- `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery.
+- `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery.
+- `OR`: the word “or” will be converted to the | operator.
+- `-`: a dash will be converted to the ! operator.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', "'fat or cat'",
+ type: TextSearchType.websearch,
+ config: 'english'
+ )
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/update.mdx b/apps/reference/_supabase_dart/update.mdx
new file mode 100644
index 00000000000..b67156e93ef
--- /dev/null
+++ b/apps/reference/_supabase_dart/update.mdx
@@ -0,0 +1,108 @@
+---
+id: update
+title: "Modify data: update()"
+slug: update
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs an UPDATE on the table.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Middle Earth' })
+ .match({ 'name': 'Auckland' })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `update()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to update.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Updating your data
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('cities')
+ .update({ 'name': 'Middle Earth' })
+ .match({ 'name': 'Auckland' })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Updating JSON data
+
+Postgres offers a
+[number of operators](https://www.postgresql.org/docs/current/functions-json.html)
+for working with JSON data. Right now it is only possible to update an entire JSON document,
+but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('users')
+ .update({
+ 'address': {
+ 'street': 'Melrose Place',
+ 'postcode': 90210
+ }
+ })
+ .eq('address->postcode', 90210)
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/upsert.mdx b/apps/reference/_supabase_dart/upsert.mdx
new file mode 100644
index 00000000000..0d599b66f12
--- /dev/null
+++ b/apps/reference/_supabase_dart/upsert.mdx
@@ -0,0 +1,128 @@
+---
+id: upsert
+title: "Upsert data: upsert()"
+slug: upsert
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs an UPSERT into the table.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('messages')
+ .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Primary keys should be included in the data payload in order for an update to work correctly.
+- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Upsert your data
+
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('messages')
+ .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Upserting into tables with constraints
+
+Running the following will cause supabase to upsert data into the `users` table.
+If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row
+based on the column passed into `onConflict`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('users')
+ .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' })
+ .execute();
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Return the exact number of rows
+
+Allowed values for count option are `exact`, `planned` and `estimated`.
+
+
+<Tabs
+ defaultValue="dart"
+ groupId="reference/dart"
+ values={[{ label: 'Dart', value: 'dart' }]}>
+
+<TabItem value="dart">
+
+```dart
+final res = await supabase
+ .from('users')
+ .upsert({
+ 'id': 3,
+ 'message': 'foo',
+ 'username': 'supabot'
+ })
+ .execute(count: CountOption.exact);
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/usage.mdx b/apps/reference/_supabase_dart/usage.mdx
deleted file mode 100644
index 8f501838e30..00000000000
--- a/apps/reference/_supabase_dart/usage.mdx
+++ /dev/null
@@ -1,115 +0,0 @@
----
-id: usage
-title: Usage
----
-
-<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-
-
-Supabase Dart.
-
-
-
-<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-
-
-
-
-## Initializing the client library
-
-```dart
-final supabase = SupabaseClient('<SUPABASE_URL>', '<SUPABASE_ANON_KEY>');
-```
-
-
-### Attributes
-
-
-
-
-### Notes
-
-## Dart
-You can initialize a new Supabase client using the `SupabaseClient()` method.
-
-The Supabase client is your entrypoint to the rest of the Supabase functionality
-and is the easiest way to interact with everything we offer within the Supabase ecosystem.
-
-
-## Flutter
-
-For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class.
-
-
-### Examples
-
-
-
-####
-
-```dart
-final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key');
-```
-
-
-
-
-####
-
-```dart title="main.dart"
-Future<void> main() async {
- await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key');
- runApp(MyApp());
-}
-```
-
-
-
-
-
-
-## Create a new user.
-
-```dart
-final res = await supabase.auth.signUp('<USER_EMAIL>', '<USER_PASSWORD>');
-```
-
-
-### Attributes
-
-
-
-
-### Notes
-
-- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
-- If "Email Confirmations" is turned on, a user is returned but session will be null
-- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned
-- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
-
-
-### Examples
-
-
-
-#### Sign up.
-
-```dart
-final res = await supabase.auth.signUp('[email protected]', 'example-password');
-
-final user = res.data?.user;
-final error = res.error;
-```
-
-
-
-
-#### Sign up with third-party providers.
-
-```dart
-// Use signInWithProvider()
-```
-
-
-
-
diff --git a/apps/reference/_supabase_dart/using-filters.mdx b/apps/reference/_supabase_dart/using-filters.mdx
new file mode 100644
index 00000000000..cd06fc27708
--- /dev/null
+++ b/apps/reference/_supabase_dart/using-filters.mdx
@@ -0,0 +1,44 @@
+---
+id: using-filters
+title: "Using Filters"
+slug: using-filters
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Filters can be used on `select()`, `update()`, and `delete()` queries.
+
+If a Stored Procedure returns a table response, you can also apply filters.
+
+### Applying Filters
+
+You must apply your filters to the end of your query. For example:
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The Shire') // Correct
+ .execute();
+
+final res = await supabase
+ .from('cities')
+ .eq('name', 'The Shire') // Incorrect
+ .select('name, country_id')
+ .execute();
+```
+
+### Chaining
+
+Filters can be chained together to produce advanced queries. For example:
+
+```dart
+final res = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('population', 1000)
+ .lt('population', 10000)
+ .execute();
+```
\ No newline at end of file
diff --git a/apps/reference/_supabase_dart/using-modifiers.mdx b/apps/reference/_supabase_dart/using-modifiers.mdx
new file mode 100644
index 00000000000..4335f600b6d
--- /dev/null
+++ b/apps/reference/_supabase_dart/using-modifiers.mdx
@@ -0,0 +1,13 @@
+---
+id: using-modifiers
+title: "Using Modifiers"
+slug: using-modifiers
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/dart.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Modifiers can be used on `select()` queries.
+
+If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function.
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-createuser.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-createuser.mdx
new file mode 100644
index 00000000000..07a1958e1a1
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-createuser.mdx
@@ -0,0 +1,148 @@
+---
+id: auth-api-createuser
+title: "createUser()"
+slug: auth-api-createuser
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Creates a new user.
+
+This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.createUser({
+ email: '[email protected]',
+ password: 'password',
+ user_metadata: { name: 'Yoda' }
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ attributes
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>AdminUserAttributes</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The data you want to create the user with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should be called on a server. Never expose your `service_role` key in the browser.
+- If you do not provide the `email_confirm` and `phone_confirm` options to this function, both will default to false.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create a new user.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.createUser({
+ email: '[email protected]',
+ password: 'password',
+ user_metadata: { name: 'Yoda' }
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Auto-confirm email.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.createUser({
+ email: '[email protected]',
+ email_confirm: true
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Auto-confirm phone.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.createUser({
+ phone: '1234567890',
+ phone_confirm: true
+})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-deleteuser.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-deleteuser.mdx
new file mode 100644
index 00000000000..ff8e4acff96
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-deleteuser.mdx
@@ -0,0 +1,97 @@
+---
+id: auth-api-deleteuser
+title: "deleteUser()"
+slug: auth-api-deleteuser
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Delete a user. Requires a `service_role` key.
+
+This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.deleteUser(
+ '715ed5db-f090-4b8c-a067-640ecee36aa0'
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ uid
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The user uid you want to remove.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should be called on a server. Never expose your `service_role` key in the browser.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Remove a user completely.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.deleteUser(
+ '715ed5db-f090-4b8c-a067-640ecee36aa0'
+)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-generatelink.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-generatelink.mdx
new file mode 100644
index 00000000000..540ff45da0f
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-generatelink.mdx
@@ -0,0 +1,189 @@
+---
+id: auth-api-generatelink
+title: "generateLink()"
+slug: auth-api-generatelink
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Generates links to be sent via email or other.
+
+
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ type
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>signup</code> | <code>magiclink</code> | <code>recovery</code> | <code>invite</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The link type ("signup" or "magiclink" or "recovery" or "invite").
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ email
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The user's email.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ data
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ password
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ redirectTo
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Generate invite link.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.generateLink(
+ 'invite',
+)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-getuser.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-getuser.mdx
new file mode 100644
index 00000000000..3ad698e9be5
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-getuser.mdx
@@ -0,0 +1,100 @@
+---
+id: auth-api-getuser
+title: "getUser()"
+slug: auth-api-getuser
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Gets the current user details.
+
+This method is called by the GoTrueClient `update` where
+the jwt is set to this.currentSession.access_token
+and therefore, acts like getting the currently authenticated user
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, error } = await supabase.auth.api.getUser(
+ 'ACCESS_TOKEN_JWT',
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ jwt
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+A valid, logged-in JWT. Typically, the access_token for the currentSession
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Fetches the user object from the database instead of local storage.
+- Note that user() fetches the user object from local storage which might not be the most updated.
+- Requires the user's access_token.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Fetch the user object using the access_token jwt.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, error } = await supabase.auth.api.getUser(
+ 'ACCESS_TOKEN_JWT',
+)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-inviteuserbyemail.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-inviteuserbyemail.mdx
new file mode 100644
index 00000000000..0f6479e5127
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-inviteuserbyemail.mdx
@@ -0,0 +1,146 @@
+---
+id: auth-api-inviteuserbyemail
+title: "inviteUserByEmail()"
+slug: auth-api-inviteuserbyemail
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Sends an invite link to an email address.
+
+
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ email
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The email address of the user.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ data
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ redirectTo
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Basic example.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth
+ .api
+ .inviteUserByEmail('[email protected]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-listusers.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-listusers.mdx
new file mode 100644
index 00000000000..e3c7b9e37f7
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-listusers.mdx
@@ -0,0 +1,69 @@
+---
+id: auth-api-listusers
+title: "listUsers()"
+slug: auth-api-listusers
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Get a list of users.
+
+This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.listUsers()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should be called on a server. Never expose your `service_role` key in the browser.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get a full list of users.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.listUsers()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-resetpasswordforemail.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-resetpasswordforemail.mdx
new file mode 100644
index 00000000000..0196aa94520
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-resetpasswordforemail.mdx
@@ -0,0 +1,172 @@
+---
+id: auth-api-resetpasswordforemail
+title: "resetPasswordForEmail()"
+slug: auth-api-resetpasswordforemail
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Sends a reset request to an email address.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase.auth.api
+ .resetPasswordForEmail('[email protected]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ email
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The email address of the user.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ captchaToken
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ redirectTo
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+Sends a reset request to an email address.
+
+When the user clicks the reset link in the email they will be forwarded to:
+
+`<SITE_URL>#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery`
+
+Your app must detect `type=recovery` in the fragment and display a password reset form to the user.
+
+You should then use the access_token in the url and new password to update the user as follows:
+
+```js
+const { error, data } = await supabase.auth.api
+ .updateUser(access_token, { password : new_password })
+```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Reset password
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase.auth.api
+ .resetPasswordForEmail('[email protected]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-sendmobileotp.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-sendmobileotp.mdx
new file mode 100644
index 00000000000..969dfe58a3e
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-sendmobileotp.mdx
@@ -0,0 +1,146 @@
+---
+id: auth-api-sendmobileotp
+title: "sendMobileOTP()"
+slug: auth-api-sendmobileotp
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Sends a mobile OTP via SMS. Will register the account if it doesn't already exist
+
+
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ phone
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The user's phone number WITH international prefix
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ captchaToken
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ shouldCreateUser
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Basic example.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth
+ .api
+ .sendMobileOTP('12345879')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-updateuserbyid.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-updateuserbyid.mdx
new file mode 100644
index 00000000000..df0565e3272
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-api-updateuserbyid.mdx
@@ -0,0 +1,235 @@
+---
+id: auth-api-updateuserbyid
+title: "updateUserById()"
+slug: auth-api-updateuserbyid
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Updates the user data.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { email: '[email protected]' }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ uid
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ attributes
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>AdminUserAttributes</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The data you want to update.
+
+This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires a `service_role` key.
+- This function should only be called on a server. Never expose your `service_role` key in the browser.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Updates a user's email.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { email: '[email protected]' }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Updates a user's password.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { password: 'new_password' }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Updates a user's metadata.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { user_metadata: { hello: 'world' } }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Updates a user's app_metadata.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { app_metadata: { plan: 'trial' } }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Confirms a user's email address.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { email_confirm: true }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Confirms a user's phone number.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.auth.api.updateUserById(
+ '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4',
+ { phone_confirm: true }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-onauthstatechange.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-onauthstatechange.mdx
new file mode 100644
index 00000000000..e57427a6851
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-onauthstatechange.mdx
@@ -0,0 +1,225 @@
+---
+id: auth-onauthstatechange
+title: "onAuthStateChange()"
+slug: auth-onauthstatechange
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Receive a notification every time an auth event happens.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ console.log(event, session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ callback
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Listen to auth changes
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ console.log(event, session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listen to sign in
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ if (event == 'SIGNED_IN') console.log('SIGNED_IN', session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listen to sign out
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ if (event == 'SIGNED_OUT') console.log('SIGNED_OUT', session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listen to token refresh
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ if (event == 'TOKEN_REFRESHED') console.log('TOKEN_REFRESHED', session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listen to user updates
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ if (event == 'USER_UPDATED') console.log('USER_UPDATED', session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listen to user deleted
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ if (event == 'USER_DELETED') console.log('USER_DELETED', session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listen to password recovery events
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.auth.onAuthStateChange((event, session) => {
+ if (event == 'PASSWORD_RECOVERY') console.log('PASSWORD_RECOVERY', session)
+})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-session.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-session.mdx
new file mode 100644
index 00000000000..d2bafcbd3ec
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-session.mdx
@@ -0,0 +1,65 @@
+---
+id: auth-session
+title: "session()"
+slug: auth-session
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Returns the session data, if there is an active session.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const session = supabase.auth.session()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get the session data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const session = supabase.auth.session()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-setauth.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-setauth.mdx
new file mode 100644
index 00000000000..b5e5339dad5
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-setauth.mdx
@@ -0,0 +1,160 @@
+---
+id: auth-setauth
+title: "setAuth()"
+slug: auth-setauth
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+function apiFunction(req, res) {
+ // Assuming the access token was sent as a header "X-Supabase-Auth"
+ const { access_token } = req.get('X-Supabase-Auth')
+
+ // You can now use it within a Supabase Client
+ const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key")
+ const { user, error } = supabase.auth.setAuth(access_token)
+
+ // This client will now send requests as this user
+ const { data } = await supabase.from('your_table').select()
+}
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ access_token
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+a jwt access token
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Basic example.
+
+This is most useful on server-side functions where you cannot log the user in, but have access to the user's access token.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+function apiFunction(req, res) {
+ // Assuming the access token was sent as a header "X-Supabase-Auth"
+ const { access_token } = req.get('X-Supabase-Auth')
+
+ // You can now use it within a Supabase Client
+ const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key")
+ const { user, error } = supabase.auth.setAuth(access_token)
+
+ // This client will now send requests as this user
+ const { data } = await supabase.from('your_table').select()
+}
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With Express.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+
+/**
+* Make a request from the client to your server function
+*/
+async function makeApiRequest() {
+ const token = newClient.session()?.access_token
+
+ await fetch('https://example.com/withAuth', {
+ method: 'GET',
+ withCredentials: true,
+ credentials: 'include',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Authorization': bearer, // Your own auth
+ 'X-Supabase-Auth': token, // Set the Supabase user
+ }
+ })
+}
+
+/**
+* Use the Auth token in your server-side function.
+*/
+async function apiFunction(req, res) {
+ const { access_token } = req.get('X-Supabase-Auth')
+
+ // You can now use it within a Supabase Client
+ const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key")
+ const { user, error } = supabase.auth.setAuth(access_token)
+
+ // This client will now send requests as this user
+ const { data } = await supabase.from('your_table').select()
+}
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signin.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signin.mdx
new file mode 100644
index 00000000000..61a0ac22607
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signin.mdx
@@ -0,0 +1,386 @@
+---
+id: auth-signin
+title: "signIn()"
+slug: auth-signin
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Log in an existing user, or login via a third-party provider.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+ email: '[email protected]',
+ password: 'example-password',
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>UserCredentials</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ captchaToken
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ queryParams
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ redirectTo
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ scopes
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ shouldCreateUser
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- A user can sign up either via email or OAuth.
+- If you provide `email` without a `password`, the user will be sent a magic link.
+- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
+- Specifying a `provider` will open the browser to the relevant login page.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign in with email.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+ email: '[email protected]',
+ password: 'example-password',
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in with magic link.
+
+If no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in using third-party providers.
+
+Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers).
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+ // provider can be 'github', 'google', 'gitlab', and more
+ provider: 'github'
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in with Phone.
+
+Supabase supports Phone Auth.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+ phone: '+13334445555',
+ password: 'some-password',
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in with redirect.
+
+Note that the `redirectTo` param is only relevant for OAuth logins, where the login flow is managed by
+the Auth server. If you are using email/phone logins you should set up your own redirects (within the email/sms template).
+
+Sometimes you want to control where the user is redirected to after they are logged in. Supabase supports this for
+any URL path on your website (the URL must either be on the same domain as your Site URL [see Auth>Settings in dashboard], or must match one of the Additional Redirect URLs [also in Auth>Settings]).
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+ provider: 'github'
+}, {
+ redirectTo: 'https://example.com/welcome'
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in with scopes.
+
+If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token.
+You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signIn({
+ provider: 'github'
+}, {
+ scopes: 'repo gist notifications'
+})
+const oAuthToken = session.provider_token // use to access provider API
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign in using a refresh token (e.g. in React Native).
+
+If you are completing a sign up or login in a React Native app you can pass the refresh token obtained from the provider to obtain a session.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// An example using Expo's `AuthSession`
+const redirectUri = AuthSession.makeRedirectUri({ useProxy: false });
+const provider = 'google';
+
+AuthSession.startAsync({
+ authUrl: `https://MYSUPABASEAPP.supabase.co/auth/v1/authorize?provider=${provider}&redirect_to=${redirectUri}`,
+ returnUrl: redirectUri,
+}).then(async (response: any) => {
+ if (!response) return;
+ const { user, session, error } = await supabase.auth.signIn({
+ refreshToken: response.params?.refresh_token,
+ });
+});
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signout.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signout.mdx
new file mode 100644
index 00000000000..01e7ea089db
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signout.mdx
@@ -0,0 +1,68 @@
+---
+id: auth-signout
+title: "signOut()"
+slug: auth-signout
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Inside a browser context, `signOut()` will remove the logged in user from the browser session
+and log them out - removing all items from localstorage and then trigger a "SIGNED_OUT" event.
+
+For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { error } = await supabase.auth.signOut()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign out
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { error } = await supabase.auth.signOut()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signup.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signup.mdx
new file mode 100644
index 00000000000..f9b2a3467b6
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-signup.mdx
@@ -0,0 +1,256 @@
+---
+id: auth-signup
+title: "signUp()"
+slug: auth-signup
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Creates a new user.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>UserCredentials</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ captchaToken
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ data
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ redirectTo
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
+- If "Email Confirmations" is turned on, a `user` is returned but `session` will be null
+- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned
+- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com)
+- If signUp() is called for an existing confirmed user:
+ - If "Enable email confirmations" is enabled on the "Authentication" -> "Settings" page, an obfuscated / fake user object will be returned.
+ - If "Enable email confirmations" is disabled, an error with a message "User already registered" will be returned.
+- To check if a user already exists, refer to getUser().
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign up.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign up with additional user meta data.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signUp(
+ {
+ email: '[email protected]',
+ password: 'example-password',
+ },
+ {
+ data: {
+ first_name: 'John',
+ age: 27,
+ }
+ }
+)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Sign up with third-party providers.
+
+You can sign up with OAuth providers using the [`signIn()`](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers) method.
+
+### Sign up with Phone.
+
+Supabase supports Phone Auth. After a user has verified their number, they can use the [`signIn()`](/docs/reference/javascript/auth-signin#sign-in-using-phone) method.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, session, error } = await supabase.auth.signUp({
+ phone: '+13334445555',
+ password: 'some-password',
+})
+
+// After receiving an SMS with One Time Password.
+let { session, error } = await supabase.auth.verifyOTP({
+ phone: '+13334445555',
+ token: '123456',
+})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-update.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-update.mdx
new file mode 100644
index 00000000000..54b93440033
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-update.mdx
@@ -0,0 +1,137 @@
+---
+id: auth-update
+title: "update()"
+slug: auth-update
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Updates user data, if there is a logged in user.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, error } = await supabase.auth.update({email: '[email protected]'})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ attributes
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>UserAttributes</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+User email: Email updates will send an email to both the user's current and new email with a confirmation link by default.
+To toggle this behavior off and only send a single confirmation link to the new email, toggle "Double confirm email changes" under "Authentication" -> "Settings" off.
+
+
+User metadata: It's generally better to store user data in a table inside your public schema (i.e. `public.users`).
+Use the `update()` method if you have data which rarely changes or is specific only to the logged in user.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update email for authenticated user.
+
+Sends a "Confirm Email Change" email to the new email address.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, error } = await supabase.auth.update({email: '[email protected]'})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Update password for authenticated user.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, error } = await supabase.auth.update({password: 'new password'})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Update a user's metadata.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { user, error } = await supabase.auth.update({
+ data: { hello: 'world' }
+})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-user.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-user.mdx
new file mode 100644
index 00000000000..22a6c096b30
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/auth-user.mdx
@@ -0,0 +1,68 @@
+---
+id: auth-user
+title: "user()"
+slug: auth-user
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Inside a browser context, `user()` will return the user data, if there is a logged in user.
+
+For server-side management, you can get a user through `auth.api.getUserByCookie()`
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const user = supabase.auth.user()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+This method gets the user object from memory.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get the logged in user
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const user = supabase.auth.user()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/containedby.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/containedby.mdx
new file mode 100644
index 00000000000..7dbc64a74db
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/containedby.mdx
@@ -0,0 +1,148 @@
+---
+id: containedby
+title: ".containedBy()"
+slug: containedby
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `.containedBy()` can work on array columns or range columns.
+
+ ```js
+ .containedBy('arraycol',["a","b"]) // You can use a javascript array for an array column
+ .containedBy('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column.
+ .containedBy('rangecol','(1,2]') // Use Postgres range syntax for range column.
+ .containedBy('rangecol',`(${arr}]`) // You can insert an array into a string.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .containedBy('main_exports', ['orks', 'surveillance', 'evil'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .containedBy('main_exports', ['cars', 'food', 'machine'])
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/contains.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/contains.mdx
new file mode 100644
index 00000000000..91e6d30d646
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/contains.mdx
@@ -0,0 +1,149 @@
+---
+id: contains
+title: ".contains()"
+slug: contains
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .contains('main_exports', ['oil'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `.contains()` can work on array columns or range columns.
+ It is very useful for finding rows where a tag array contains all the values in the filter array.
+
+ ```js
+ .contains('arraycol',["a","b"]) // You can use a javascript array for an array column
+ .contains('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column.
+ .contains('rangecol','(1,2]') // Use Postgres range syntax for range column.
+ .contains('rangecol',`(${arr}]`) // You can insert an array into a string.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .contains('main_exports', ['oil'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .contains('main_exports', ['oil'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .contains('main_exports', ['oil'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .contains('main_exports', ['oil'])
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/delete.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/delete.mdx
new file mode 100644
index 00000000000..cb521c142c8
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/delete.mdx
@@ -0,0 +1,147 @@
+---
+id: delete
+title: "Delete data: delete()"
+slug: delete
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs a DELETE on the table.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .match({ id: 666 })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ returning
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>minimal</code> | <code>representation</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+If `true`, return the deleted row(s) in the response.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Count algorithm to use to count rows in a table.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- `delete()` should always be combined with [filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to delete.
+- If you use `delete()` with filters and you have
+ [RLS](/docs/learn/auth-deep-dive/auth-row-level-security) enabled, only
+ rows visible through `SELECT` policies are deleted. Note that by default
+ no rows are visible, so you need at least one `SELECT`/`ALL` policy that
+ makes the rows visible.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Delete records
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .match({ id: 666 })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/eq.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/eq.mdx
new file mode 100644
index 00000000000..e53807ff03f
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/eq.mdx
@@ -0,0 +1,186 @@
+---
+id: eq
+title: ".eq()"
+slug: eq
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` exactly matches the
+specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The shire')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The shire')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .eq('name', 'San Francisco')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .eq('name', 'Mordor')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .eq('name', 'San Francisco')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/filter.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/filter.mdx
new file mode 100644
index 00000000000..260e432dc1a
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/filter.mdx
@@ -0,0 +1,236 @@
+---
+id: filter
+title: ".filter()"
+slug: filter
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose `column` satisfies the filter.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .filter('name', 'in', '("Paris","Tokyo")')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ operator
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>FilterOperator</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The operator to filter with.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>any</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work.
+ ```js
+ .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains.
+ .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column.
+ .filter('id','in','(6,7)') // Use Postgres list () for in filter.
+ .filter('id','in',`(${arr})`) // You can insert a javascript array.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .filter('name', 'in', '("Paris","Tokyo")')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .filter('name', 'in', '("Paris","Tokyo")')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .filter('name', 'in', '("Paris","Tokyo")')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .filter('name', 'in', '("Paris","Tokyo")')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Filter embedded resources
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, countries ( name )')
+ .filter('countries.name', 'in', '("France","Japan")')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/generating-types.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/generating-types.mdx
new file mode 100644
index 00000000000..f79966e82b4
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/generating-types.mdx
@@ -0,0 +1,42 @@
+---
+id: generating-types
+title: "Generating Types"
+slug: generating-types
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Supabase will soon release native type generators that dump your database types for various languages. For now, we support TypeScript [through third-party tools](/docs/guides/api/generating-types).
+
+## Usage with TypeScript
+
+`supabase-js` ships with type definitions for usage with TypeScript and for convenient IntelliSense auto-complete and documentation in your editor.
+
+When using TypeScript, you can pass the type of database row as a type parameter to the `from` method to get better auto-completion support down the chain.
+If you don't provide a type for the row you need to explicitly pass `from<any>('tableName')`.
+
+```ts
+type Message = {
+ id: number;
+ inserted_at: string;
+ message: string;
+ user_id: string;
+ channel_id: number;
+ author: { username: string };
+}
+
+const response = await supabase
+ .from<Message>('messages') // Message maps to the type of the row in your database.
+ .select('*, author:user_id(username)')
+ .match({ channel_id: 2 }) // Your IDE will be able to help with auto-completion.
+response.data // Response data will be of type Array<Message>.
+
+// If you don't provide a type for the row you need to explicitly pass `from<any>('tableName')`.
+const response = await supabase
+ .from<any>('messages')
+ .select('*, author:user_id(username)')
+ .match({ channel_id: 2 })
+response.data // Response data will be of type Array<any>.
+```
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/getsubscriptions.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/getsubscriptions.mdx
new file mode 100644
index 00000000000..f416012ba1e
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/getsubscriptions.mdx
@@ -0,0 +1,65 @@
+---
+id: getsubscriptions
+title: "getSubscriptions()"
+slug: getsubscriptions
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Returns an array of all your subscriptions.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const subscriptions = supabase.getSubscriptions()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get all subscriptions
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const subscriptions = supabase.getSubscriptions()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/gt.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/gt.mdx
new file mode 100644
index 00000000000..930e32c7a54
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/gt.mdx
@@ -0,0 +1,186 @@
+---
+id: gt
+title: ".gt()"
+slug: gt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is greater than the
+specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .gt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .gt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .gt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/gte.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/gte.mdx
new file mode 100644
index 00000000000..f3fc60960b0
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/gte.mdx
@@ -0,0 +1,186 @@
+---
+id: gte
+title: ".gte()"
+slug: gte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is greater than or
+equal to the specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .gte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .gte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .gte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/ilike.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/ilike.mdx
new file mode 100644
index 00000000000..8b28c633dc8
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/ilike.mdx
@@ -0,0 +1,186 @@
+---
+id: ilike
+title: ".ilike()"
+slug: ilike
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value in the stated `column` matches the supplied
+`pattern` (case insensitive).
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .ilike('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ pattern
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The pattern to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .ilike('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .ilike('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .ilike('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .ilike('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/in.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/in.mdx
new file mode 100644
index 00000000000..d393342b80a
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/in.mdx
@@ -0,0 +1,186 @@
+---
+id: in
+title: ".in()"
+slug: in
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is found on the
+specified `values`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .in('name', ['Rio de Janeiro', 'San Francisco'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ values
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The values to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .in('name', ['Rio de Janeiro', 'San Francisco'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .in('name', ['Rio de Janeiro', 'San Francisco'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .in('name', ['Rio de Janeiro', 'San Francisco'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .in('name', ['Rio de Janeiro', 'San Francisco'])
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/index.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/index.mdx
new file mode 100644
index 00000000000..9aaeac3e063
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/index.mdx
@@ -0,0 +1,12 @@
+---
+id: index
+title: "Supabase Client"
+slug: supabase-client
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+Supabase JavaScript.
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/initializing.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/initializing.mdx
new file mode 100644
index 00000000000..b6844ce57aa
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/initializing.mdx
@@ -0,0 +1,211 @@
+---
+id: initializing
+title: "Initializing"
+slug: initializing
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+You can initialize a new Supabase client using the `createClient()` method.
+
+The Supabase client is your entrypoint to the rest of the Supabase functionality
+and is the easiest way to interact with everything we offer within the Supabase ecosystem.
+
+
+
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ supabaseUrl
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The unique Supabase URL which is supplied when you create a new project in your project dashboard.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ supabaseKey
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The unique Supabase Key which is supplied when you create a new project in your project dashboard.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>SupabaseClientOptions</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### createClient()
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+import { createClient } from '@supabase/supabase-js'
+
+// Create a single supabase client for interacting with your database
+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With additional parameters
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+import { createClient } from '@supabase/supabase-js'
+
+const options = {
+ schema: 'public',
+ headers: { 'x-my-custom-header': 'my-app-name' },
+ autoRefreshToken: true,
+ persistSession: true,
+ detectSessionInUrl: true
+}
+const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key", options)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### API schemas
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+import { createClient } from '@supabase/supabase-js'
+
+// Provide a custom schema. Defaults to "public".
+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
+ schema: 'other_schema'
+})
+```
+
+By default the API server points to the `public` schema. You can enable other database schemas within the Dashboard.
+Go to `Settings > API > Schema` and add the schema which you want to expose to the API.
+
+Note: each client connection can only access a single schema, so the code above can access the `other_schema` schema but cannot access the `public` schema.
+
+
+</TabItem>
+
+</Tabs>
+
+### Custom `fetch` implementation
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+import { createClient } from '@supabase/supabase-js'
+
+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
+ fetch: fetch.bind(globalThis)
+})
+```
+
+`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests,
+but an alternative `fetch` implementation can be provided as an option.
+This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers).
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/insert.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/insert.mdx
new file mode 100644
index 00000000000..b47c9683166
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/insert.mdx
@@ -0,0 +1,181 @@
+---
+id: insert
+title: "Create data: insert()"
+slug: insert
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs an INSERT into the table.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .insert([
+ { name: 'The Shire', country_id: 554 }
+ ])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ values
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>Partial</code> | <code>array</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The values to insert.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>reflection</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- By default, every time you run `insert()`, the client library will make a `select` to return the full record.
+This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation.
+If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create a record
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .insert([
+ { name: 'The Shire', country_id: 554 }
+ ])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Bulk create
+
+When running a bulk create, the operation is handled in a single transaction. If any of the inserts fail, all other operations are
+rolled back.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .insert([
+ { name: 'The Shire', country_id: 554 },
+ { name: 'Rohan', country_id: 555 },
+ ])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Upsert
+
+For upsert, if set to true, primary key columns would need to be included
+in the data parameter in order for an update to properly happen. Also, primary keys
+used must be natural, not surrogate. There are however,
+[workarounds](https://github.com/PostgREST/postgrest/issues/1118)
+for surrogate primary keys.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .insert(
+ [
+ { name: 'The Shire', country_id: 554 },
+ { name: 'Rohan', country_id: 555 },
+ { name: 'City by the Bay', country_id:840}
+ ],
+ { upsert: true })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/installing.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/installing.mdx
new file mode 100644
index 00000000000..cb6372c7d8b
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/installing.mdx
@@ -0,0 +1,34 @@
+---
+id: installing
+title: "Installing"
+slug: installing
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+All JavaScript libraries are built directly by the Supabase team.
+
+Other languages are built by the community and supported by Supabase.
+
+## JavaScript
+
+Via NPM
+```bash
+npm install @supabase/supabase-js
+```
+
+Via Yarn
+```bash
+yarn add @supabase/supabase-js
+```
+
+Find the source code on [GitHub](https://github.com/supabase/supabase-js).
+
+Or via CDN
+```js
+<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
+//or
+<script src="https://unpkg.com/@supabase/supabase-js"></script>
+```
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/intro.md b/apps/reference/_supabase_js_versioned_docs/version-1.0/intro.md
new file mode 100644
index 00000000000..29e116d8e09
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/intro.md
@@ -0,0 +1,9 @@
+---
+id: intro
+slug: /
+sidebar_label: Supabase JavaScript Library
+---
+
+# Supabase JavaScript Library
+
+Some docs
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/invoke.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/invoke.mdx
new file mode 100644
index 00000000000..6bf7b57b40b
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/invoke.mdx
@@ -0,0 +1,179 @@
+---
+id: invoke
+title: "invoke()"
+slug: invoke
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Invokes a Supabase Function.
+
+:::caution
+
+Edge Functions are Experimental until 1 August 2022. There will breaking changes. Do not use them in Production.
+
+:::
+
+We have released Supabase Functions to gather feedback. You're welcome to try them out and send us feedback but we strongly advise against using them for anything in production.
+There will be breaking changes with no notice.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.functions.invoke('hello', {
+ body: JSON.stringify({ foo: 'bar' })
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ functionName
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+the name of the function to invoke
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ invokeOptions
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>FunctionInvokeOptions</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+object with the following properties
+`headers`: object representing the headers to send with the request
+`body`: the body of the request
+`responseType`: how the response should be parsed. The default is `json`
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Requires an Authorization header.
+- Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Basic invocation.
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.functions.invoke('hello', {
+ body: JSON.stringify({ foo: 'bar' })
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Specifying response type.
+
+By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.functions.invoke('hello', {
+ responseType: 'text',
+ body: JSON.stringify({ foo: 'bar' })
+})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Parsing custom headers.
+
+You can pass custom headers to your function. Note: supabase-js automatically passes the `Authorization` header with the signed in user's JWT.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data: user, error } = await supabase.functions.invoke('hello', {
+ headers: {
+ "my-custom-header": 'my-custom-header-value'
+ },
+ body: JSON.stringify({ foo: 'bar' })
+})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/is.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/is.mdx
new file mode 100644
index 00000000000..60f3890a1ab
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/is.mdx
@@ -0,0 +1,186 @@
+---
+id: is
+title: ".is()"
+slug: is
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+A check for exact equality (null, true, false), finds all rows whose
+value on the stated `column` exactly match the specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .is('name', null)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code> | <code>null</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .is('name', null)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .is('name', null)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .is('name', null)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .is('name', null)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/like.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/like.mdx
new file mode 100644
index 00000000000..fcd91547b2f
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/like.mdx
@@ -0,0 +1,186 @@
+---
+id: like
+title: ".like()"
+slug: like
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value in the stated `column` matches the supplied
+`pattern` (case sensitive).
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .like('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ pattern
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The pattern to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .like('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .like('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .like('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .like('name', '%la%')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/limit.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/limit.mdx
new file mode 100644
index 00000000000..ac9c233b878
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/limit.mdx
@@ -0,0 +1,165 @@
+---
+id: limit
+title: "limit()"
+slug: limit
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Limits the result with the specified `count`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>number</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The maximum no. of rows to limit to.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ foreignTable
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The foreign table to use (for foreign columns).
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With embedded resources
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, cities(name)')
+ .eq('name', 'United States')
+ .limit(1, { foreignTable: 'cities' })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/lt.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/lt.mdx
new file mode 100644
index 00000000000..9fb94bb0b37
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/lt.mdx
@@ -0,0 +1,186 @@
+---
+id: lt
+title: ".lt()"
+slug: lt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is less than the
+specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .lt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .lt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .lt('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/lte.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/lte.mdx
new file mode 100644
index 00000000000..6e75cedf088
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/lte.mdx
@@ -0,0 +1,186 @@
+---
+id: lte
+title: ".lte()"
+slug: lte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` is less than or equal
+to the specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .lte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .lte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .lte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .lte('country_id', 250)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/match.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/match.mdx
new file mode 100644
index 00000000000..36021a0290f
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/match.mdx
@@ -0,0 +1,165 @@
+---
+id: match
+title: ".match()"
+slug: match
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose columns match the specified `query` object.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .match({name: 'Beijing', country_id: 156})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ query
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>Record</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The object to filter with, with column names as keys mapped
+ to their filter values.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .match({name: 'Beijing', country_id: 156})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .match({name: 'Beijing', country_id: 156})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .match({name: 'Beijing', country_id: 156})
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .match({name: 'Beijing', country_id: 156})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/maybesingle.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/maybesingle.mdx
new file mode 100644
index 00000000000..68e0d4fb4dc
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/maybesingle.mdx
@@ -0,0 +1,75 @@
+---
+id: maybesingle
+title: "maybeSingle()"
+slug: maybesingle
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves at most one row from the result. Result must be at most one row
+(e.g. using `eq` on a UNIQUE column), otherwise this will result in an
+error.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'Singapore')
+ .maybeSingle()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'Singapore')
+ .maybeSingle()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/neq.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/neq.mdx
new file mode 100644
index 00000000000..e9ea6c02f6b
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/neq.mdx
@@ -0,0 +1,186 @@
+---
+id: neq
+title: ".neq()"
+slug: neq
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose value on the stated `column` doesn't match the
+specified `value`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .neq('name', 'The shire')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .neq('name', 'The shire')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .neq('name', 'San Francisco')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .neq('name', 'Mordor')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .neq('name', 'Lagos')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/not.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/not.mdx
new file mode 100644
index 00000000000..69447efbd9b
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/not.mdx
@@ -0,0 +1,215 @@
+---
+id: not
+title: ".not()"
+slug: not
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows which doesn't satisfy the filter.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .not('name', 'eq', 'Paris')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ operator
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>FilterOperator</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The operator to filter with.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ value
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>any</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The value to filter with.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values.
+
+ ```js
+ .not('name','eq','Paris')
+ .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains.
+ .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column.
+ .not('id','in','(6,7)') // Use Postgres list () for in filter.
+ .not('id','in',`(${arr})`) // You can insert a javascript array.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .not('name', 'eq', 'Paris')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Mordor' })
+ .not('name', 'eq', 'Paris')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .delete()
+ .not('name', 'eq', 'Paris')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .not('name', 'eq', 'Paris')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/or.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/or.mdx
new file mode 100644
index 00000000000..2628c19c2a1
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/or.mdx
@@ -0,0 +1,194 @@
+---
+id: or
+title: ".or()"
+slug: or
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows satisfying at least one of the filters.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .or('id.eq.20,id.eq.30')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ filters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The filters to use, separated by commas.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ foreignTable
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The foreign table to use (if `column` is a foreign column).
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values.
+
+ ```js
+ .or('id.in.(6,7), arraycol.cs.{"a","b"}') // Use Postgres list () for in filter. Array {} for array column and 'cs' for contains.
+ .or(`id.in.(${arrList}),arraycol.cs.{${arr}}`) // You can insert a javascipt array for list or array on array column.
+ .or(`id.in.(${arrList}),rangecol.cs.[${arrRange})`) // You can insert a javascipt array for list or range on a range column.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .or('id.eq.20,id.eq.30')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Use `or` with `and`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Use `or` on foreign tables
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('id, cities(*)')
+ .or('name.eq.Wellington,name.eq.Paris', { foreignTable: "cities" })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/order.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/order.mdx
new file mode 100644
index 00000000000..beae6f398aa
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/order.mdx
@@ -0,0 +1,207 @@
+---
+id: order
+title: "order()"
+slug: order
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Orders the result with the specified `column`.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name', 'country_id')
+ .order('id', { ascending: false })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to order on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ nullsFirst
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+If `true`, `null`s appear first.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ foreignTable
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The foreign table to use (if `column` is a foreign column).
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ascending
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+If `true`, the result will be in ascending order.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name', 'country_id')
+ .order('id', { ascending: false })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With embedded resources
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, cities(name)')
+ .eq('name', 'United States')
+ .order('name', {foreignTable: 'cities'})
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/overlaps.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/overlaps.mdx
new file mode 100644
index 00000000000..438f41a25a6
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/overlaps.mdx
@@ -0,0 +1,148 @@
+---
+id: overlaps
+title: ".overlaps()"
+slug: overlaps
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .overlaps('main_exports', ['computers', 'minerals'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- `.overlaps()` can work on array columns or range columns.
+
+ ```js
+ .overlaps('arraycol',["a","b"]) // You can use a javascript array for an array column
+ .overlaps('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column.
+ .overlaps('rangecol','(1,2]') // Use Postgres range syntax for range column.
+ .overlaps('rangecol',`(${arr}]`) // You can insert an array into a string.
+ ```
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, main_exports')
+ .overlaps('main_exports', ['computers', 'minerals'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+let countries = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .overlaps('main_exports', ['computers', 'minerals'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .overlaps('main_exports', ['computers', 'minerals'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .overlaps('main_exports', ['computers', 'minerals'])
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/range.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/range.mdx
new file mode 100644
index 00000000000..5a322268184
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/range.mdx
@@ -0,0 +1,162 @@
+---
+id: range
+title: "range()"
+slug: range
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Limits the result to rows within the specified range, inclusive.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .range(0,3)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ from
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>number</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The starting index from which to limit the result, inclusive.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ to
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>number</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The last index to which to limit the result, inclusive.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ foreignTable
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The foreign table to use (for foreign columns).
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .range(0,3)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/rangeadjacent.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangeadjacent.mdx
new file mode 100644
index 00000000000..df647910118
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangeadjacent.mdx
@@ -0,0 +1,140 @@
+---
+id: rangeadjacent
+title: ".rangeAdjacent()"
+slug: rangeadjacent
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .rangeAdjacent('population_range_millions', '[70, 185]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/rangegt.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangegt.mdx
new file mode 100644
index 00000000000..b9f70df095d
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangegt.mdx
@@ -0,0 +1,140 @@
+---
+id: rangegt
+title: ".rangeGt()"
+slug: rangegt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .rangeGt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .rangeGt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .rangeGt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/rangegte.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangegte.mdx
new file mode 100644
index 00000000000..08e27b1efa1
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangegte.mdx
@@ -0,0 +1,140 @@
+---
+id: rangegte
+title: ".rangeGte()"
+slug: rangegte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeGte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .rangeGte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .rangeGte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .rangeGte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/rangelt.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangelt.mdx
new file mode 100644
index 00000000000..f1652205a7e
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangelt.mdx
@@ -0,0 +1,140 @@
+---
+id: rangelt
+title: ".rangeLt()"
+slug: rangelt
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .rangeLt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .rangeLt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .rangeLt('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/rangelte.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangelte.mdx
new file mode 100644
index 00000000000..83b4de9affe
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/rangelte.mdx
@@ -0,0 +1,140 @@
+---
+id: rangelte
+title: ".rangeLte()"
+slug: rangelte
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select('name, id, population_range_millions')
+ .rangeLte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `update()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .update({ name: 'Mordor' })
+ .rangeLte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `delete()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .delete()
+ .rangeLte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With `rpc()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+// Only valid if the Postgres function returns a table type.
+const { data, error } = await supabase
+ .rpc('echo_all_countries')
+ .rangeLte('population_range_millions', '[150, 250]')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/removeallsubscriptions.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/removeallsubscriptions.mdx
new file mode 100644
index 00000000000..daa4a31f495
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/removeallsubscriptions.mdx
@@ -0,0 +1,67 @@
+---
+id: removeallsubscriptions
+title: "removeAllSubscriptions()"
+slug: removeallsubscriptions
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Closes and removes all subscriptions and returns a list of removed
+subscriptions and their errors.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.removeAllSubscriptions()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Removes all subscriptions
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.removeAllSubscriptions()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/removesubscription.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/removesubscription.mdx
new file mode 100644
index 00000000000..11d9b9f876c
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/removesubscription.mdx
@@ -0,0 +1,90 @@
+---
+id: removesubscription
+title: "removeSubscription()"
+slug: removesubscription
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Closes and removes a subscription and returns the number of open subscriptions.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.removeSubscription(mySubscription)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ subscription
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>default</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The subscription you want to close and remove.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Remove a subscription
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+supabase.removeSubscription(mySubscription)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/rpc.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/rpc.mdx
new file mode 100644
index 00000000000..abe6a0b8a09
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/rpc.mdx
@@ -0,0 +1,280 @@
+---
+id: rpc
+title: "Postgres functions: rpc()"
+slug: rpc
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+You can call Postgres functions as a "Remote Procedure Call".
+
+That's a fancy way of saying that you can put some logic into your database then call it from anywhere.
+It's especially useful when the logic rarely changes - like password resets and updates.
+
+```sql
+create or replace function hello_world() returns text as $$
+ select 'Hello world';
+$$ language sql;
+```
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .rpc('hello_world')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fn
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The function name to call.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ params
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The parameters to pass to the function call.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ head
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+When set to true, no data will be returned.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Count algorithm to use to count rows in a table.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Call a Postgres function
+
+This is an example of invoking a Postgres function with no parameters.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .rpc('hello_world')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With Parameters
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .rpc('echo_city', { name: 'The Shire' })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Bulk processing
+
+You can process large payloads at once using [array parameters](https://postgrest.org/en/stable/api.html#calling-functions-with-array-parameters).
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await postgrest
+ .rpc('echo_cities', { names: ['The Shire', 'Mordor'] })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With filters
+
+Postgres functions that return tables can also be combined with
+[Modifiers](/docs/reference/javascript/using-modifiers) and
+[Filters](/docs/reference/javascript/using-filters).
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .rpc('echo_all_cities')
+ .select('name, population')
+ .eq('name', 'The Shire')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### With count option
+
+You can specify a count option to get the row count along with your data.
+Allowed values for count option are `null`, `exact`, `planned` and `estimated`.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error, count } = await supabase
+ .rpc('hello_world', {}, { count: 'exact' })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/select.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/select.mdx
new file mode 100644
index 00000000000..8b32c496df3
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/select.mdx
@@ -0,0 +1,397 @@
+---
+id: select
+title: "Fetch data: select()"
+slug: select
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs vertical filtering with SELECT.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ columns
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The columns to retrieve, separated by commas.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ head
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+When set to true, select will void data.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Count algorithm to use to count rows in a table.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data.
+- `select()` can be combined with [Modifiers](/docs/reference/javascript/using-modifiers)
+- `select()` can be combined with [Filters](/docs/reference/javascript/using-filters)
+- If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465).
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Getting your data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Selecting specific columns
+
+You can select specific fields from your tables.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Query foreign tables
+
+If your database has foreign key relationships, you can query related tables too.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('countries')
+ .select(`
+ name,
+ cities (
+ name
+ )
+ `)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+:::note What about join tables
+ If you're in a situation where your tables are **NOT** directly related, but instead are joined by a _join table_,
+you can still use the `select()` method to query the related data. The PostgREST engine detects the relationship automatically.
+For more details, [follow the link](https://postgrest.org/en/latest/api.html#embedding-through-join-tables).
+
+:::
+
+### Query the same foreign table multiple times
+
+Sometimes you will need to query the same foreign table twice.
+In this case, you can use the name of the joined column to identify
+which join you intend to use. For convenience, you can also give an
+alias for each column. For example, if we had a shop of products,
+and we wanted to get the supplier and the purchaser at the same time
+(both in the users) table:
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('products')
+ .select(`
+ id,
+ supplier:supplier_id ( name ),
+ purchaser:purchaser_id ( name )
+ `)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Filtering with inner joins
+
+If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted
+to select all rows in a `message` table which belong to a user with the `username` "Jane":
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('messages')
+ .select('*, users!inner(*)')
+ .eq('users.username', 'Jane')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Querying with count option
+
+You can get the number of rows by using the count option.
+Allowed values for count option are `null`, [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count).
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error, count } = await supabase
+ .from('cities')
+ .select('name', { count: 'exact' }) // if you don't want to return any rows, you can use { count: 'exact', head: true }
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Querying JSON data
+
+If you have data inside of a JSONB column, you can apply select
+and query filters to the data values. Postgres offers a
+[number of operators](https://www.postgresql.org/docs/current/functions-json.html)
+for querying JSON data. Also see
+[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('users')
+ .select(`
+ id, name,
+ address->street
+ `)
+ .eq('address->postcode', 90210)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Return data as CSV
+
+By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('users')
+ .select()
+ .csv()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Aborting requests in-flight
+
+You can use an [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) to abort requests. Note that `status` and `statusText` doesn't mean anything for aborted requests, since the request wasn't actually fulfilled.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const ac = new AbortController()
+supabase
+ .from('very_big_table')
+ .select()
+ .abortSignal(ac.signal)
+ .then(console.log)
+ac.abort()
+// {
+// error: {
+// message: 'FetchError: The user aborted a request.',
+// details: '',
+// hint: '',
+// code: ''
+// },
+// data: null,
+// body: null,
+// count: null,
+// status: 400,
+// statusText: 'Bad Request'
+// }
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/single.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/single.mdx
new file mode 100644
index 00000000000..ac2e8fa5207
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/single.mdx
@@ -0,0 +1,74 @@
+---
+id: single
+title: "single()"
+slug: single
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves only one row from the result. Result must be one row (e.g. using
+`limit`), otherwise this will result in an error.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+ .single()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### With `select()`
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .limit(1)
+ .single()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-createbucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-createbucket.mdx
new file mode 100644
index 00000000000..5ca1aa8eb3d
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-createbucket.mdx
@@ -0,0 +1,142 @@
+---
+id: storage-createbucket
+title: "createBucket()"
+slug: storage-createbucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Creates a new Storage bucket
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .createBucket('avatars', { public: false })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ id
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+A unique identifier for the bucket you are creating.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ public
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `insert`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .createBucket('avatars', { public: false })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-deletebucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-deletebucket.mdx
new file mode 100644
index 00000000000..de6d854eb84
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-deletebucket.mdx
@@ -0,0 +1,97 @@
+---
+id: storage-deletebucket
+title: "deleteBucket()"
+slug: storage-deletebucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.
+You must first `empty()` the bucket.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .deleteBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ id
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The unique identifier of the bucket you would like to delete.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select` and `delete`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Delete bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .deleteBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-emptybucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-emptybucket.mdx
new file mode 100644
index 00000000000..c700f79a412
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-emptybucket.mdx
@@ -0,0 +1,96 @@
+---
+id: storage-emptybucket
+title: "emptyBucket()"
+slug: storage-emptybucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Removes all objects inside a single bucket.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .emptyBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ id
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The unique identifier of the bucket you would like to empty.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select`
+ - `objects` permissions: `select` and `delete`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Empty bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .emptyBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-copy.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-copy.mdx
new file mode 100644
index 00000000000..b7e10cef7aa
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-copy.mdx
@@ -0,0 +1,119 @@
+---
+id: storage-from-copy
+title: "from.copy()"
+slug: storage-from-copy
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Copies an existing file.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .copy('public/avatar1.png', 'private/avatar2.png')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fromPath
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The original file path, including the current file name. For example `folder/image.png`.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ toPath
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The new file path, including the new file name. For example `folder/image-copy.png`.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `update` and `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Copy file
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .copy('public/avatar1.png', 'private/avatar2.png')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-createsignedurl.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-createsignedurl.mdx
new file mode 100644
index 00000000000..5b68f4ced09
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-createsignedurl.mdx
@@ -0,0 +1,119 @@
+---
+id: storage-from-createsignedurl
+title: "from.createSignedUrl()"
+slug: storage-from-createsignedurl
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { signedURL, error } = await supabase
+ .storage
+ .from('avatars')
+ .createSignedUrl('folder/avatar1.png', 60)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The file path to be downloaded, including the current file name. For example `folder/image.png`.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ expiresIn
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>number</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create Signed URL
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { signedURL, error } = await supabase
+ .storage
+ .from('avatars')
+ .createSignedUrl('folder/avatar1.png', 60)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-createsignedurls.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-createsignedurls.mdx
new file mode 100644
index 00000000000..26640d20873
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-createsignedurls.mdx
@@ -0,0 +1,119 @@
+---
+id: storage-from-createsignedurls
+title: "from.createSignedUrls()"
+slug: storage-from-createsignedurls
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .createSignedUrls(['folder/avatar1.png', 'folder/avatar2.png'], 60)
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ paths
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The file paths to be downloaded, including the current file names. For example `['folder/image.png', 'folder2/image2.png']`.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ expiresIn
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>number</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The number of seconds until the signed URLs expire. For example, `60` for URLs which are valid for one minute.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Create Signed URLs
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .createSignedUrls(['folder/avatar1.png', 'folder/avatar2.png'], 60)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-download.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-download.mdx
new file mode 100644
index 00000000000..0d6d8916045
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-download.mdx
@@ -0,0 +1,98 @@
+---
+id: storage-from-download
+title: "from.download()"
+slug: storage-from-download
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Downloads a file.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .download('folder/avatar1.png')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The file path to be downloaded, including the path and file name. For example `folder/image.png`.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Download file
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .download('folder/avatar1.png')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-getpublicurl.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-getpublicurl.mdx
new file mode 100644
index 00000000000..3697135f1b8
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-getpublicurl.mdx
@@ -0,0 +1,99 @@
+---
+id: storage-from-getpublicurl
+title: "from.getPublicUrl()"
+slug: storage-from-getpublicurl
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieve URLs for assets in public buckets
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { publicURL, error } = supabase
+ .storage
+ .from('public-bucket')
+ .getPublicUrl('folder/avatar1.png')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The file path to be downloaded, including the path and file name. For example `folder/image.png`.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public"
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Returns the URL for an asset in a public bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { publicURL, error } = supabase
+ .storage
+ .from('public-bucket')
+ .getPublicUrl('folder/avatar1.png')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-list.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-list.mdx
new file mode 100644
index 00000000000..c36f90e1866
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-list.mdx
@@ -0,0 +1,176 @@
+---
+id: storage-from-list
+title: "from.list()"
+slug: storage-from-list
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Lists all the files within a bucket.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .list('folder', {
+ limit: 100,
+ offset: 0,
+ sortBy: { column: 'name', order: 'asc' },
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The folder path.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>SearchOptions</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Search options, including `limit`, `offset`, `sortBy`, and `search`.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ parameters
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>FetchParameters</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Fetch parameters, currently only supports `signal`, which is an AbortController's signal
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### List files in a bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .list('folder', {
+ limit: 100,
+ offset: 0,
+ sortBy: { column: 'name', order: 'asc' },
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Search files in a bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .list('folder', {
+ limit: 100,
+ offset: 0,
+ sortBy: { column: 'name', order: 'asc' },
+ search: 'jon'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-move.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-move.mdx
new file mode 100644
index 00000000000..1a2f91f3870
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-move.mdx
@@ -0,0 +1,119 @@
+---
+id: storage-from-move
+title: "from.move()"
+slug: storage-from-move
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Moves an existing file.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .move('public/avatar1.png', 'private/avatar2.png')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fromPath
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The original file path, including the current file name. For example `folder/image.png`.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ toPath
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The new file path, including the new file name. For example `folder/image-new.png`.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `update` and `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Move file
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .move('public/avatar1.png', 'private/avatar2.png')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-remove.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-remove.mdx
new file mode 100644
index 00000000000..6c7ed773416
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-remove.mdx
@@ -0,0 +1,98 @@
+---
+id: storage-from-remove
+title: "from.remove()"
+slug: storage-from-remove
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Deletes files within the same bucket
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .remove(['folder/avatar1.png'])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ paths
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+An array of files to be deleted, including the path and file name. For example [`folder/image.png`].
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `delete` and `select`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Delete file
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .remove(['folder/avatar1.png'])
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-update.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-update.mdx
new file mode 100644
index 00000000000..b959a3f8da2
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-update.mdx
@@ -0,0 +1,179 @@
+---
+id: storage-from-update
+title: "from.update()"
+slug: storage-from-update
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Replaces an existing file at the specified path with a new one.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const avatarFile = event.target.files[0]
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .update('public/avatar1.png', avatarFile, {
+ cacheControl: '3600',
+ upsert: false
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fileBody
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The body of the file to be stored in the bucket.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fileOptions
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>FileOptions</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+HTTP headers.
+`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.
+`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.
+`upsert`: boolean, whether to perform an upsert.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `update` and `select`
+- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update file
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const avatarFile = event.target.files[0]
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .update('public/avatar1.png', avatarFile, {
+ cacheControl: '3600',
+ upsert: false
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Update file using `ArrayBuffer` from base64 file data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+import {decode} from 'base64-arraybuffer'
+
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .update('public/avatar1.png', decode('base64FileData'), {
+ contentType: 'image/png'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-upload.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-upload.mdx
new file mode 100644
index 00000000000..693c04a1d65
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-from-upload.mdx
@@ -0,0 +1,179 @@
+---
+id: storage-from-upload
+title: "from.upload()"
+slug: storage-from-upload
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Uploads a file to an existing bucket.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const avatarFile = event.target.files[0]
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .upload('public/avatar1.png', avatarFile, {
+ cacheControl: '3600',
+ upsert: false
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ path
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fileBody
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>ArrayBuffer</code> | <code>ArrayBufferView</code> | <code>Blob</code> | <code>Buffer</code> | <code>File</code> | <code>FormData</code> | <code>ReadableStream</code> | <code>ReadableStream</code> | <code>URLSearchParams</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The body of the file to be stored in the bucket.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ fileOptions
+ </span>
+ <span className="method-list-item-label-badge false">
+ optional
+ </span>
+ <span className="method-list-item-validation">
+ <code>FileOptions</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+HTTP headers.
+`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.
+`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.
+`upsert`: boolean, whether to perform an upsert.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: none
+ - `objects` permissions: `insert`
+- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Upload file
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const avatarFile = event.target.files[0]
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .upload('public/avatar1.png', avatarFile, {
+ cacheControl: '3600',
+ upsert: false
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Upload file using `ArrayBuffer` from base64 file data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+import { decode } from 'base64-arraybuffer'
+
+const { data, error } = await supabase
+ .storage
+ .from('avatars')
+ .upload('public/avatar1.png', decode('base64FileData'), {
+ contentType: 'image/png'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-getbucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-getbucket.mdx
new file mode 100644
index 00000000000..376c74f8446
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-getbucket.mdx
@@ -0,0 +1,96 @@
+---
+id: storage-getbucket
+title: "getBucket()"
+slug: storage-getbucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves the details of an existing Storage bucket.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .getBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ id
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The unique identifier of the bucket you would like to retrieve.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .getBucket('avatars')
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-listbuckets.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-listbuckets.mdx
new file mode 100644
index 00000000000..9663ab5d13f
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-listbuckets.mdx
@@ -0,0 +1,72 @@
+---
+id: storage-listbuckets
+title: "listBuckets()"
+slug: storage-listbuckets
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Retrieves the details of all Storage buckets within an existing project.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .listBuckets()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+
+
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `select`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### List buckets
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .listBuckets()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-updatebucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-updatebucket.mdx
new file mode 100644
index 00000000000..07ac875c558
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/storage-updatebucket.mdx
@@ -0,0 +1,142 @@
+---
+id: storage-updatebucket
+title: "updateBucket()"
+slug: storage-updatebucket
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Updates a new Storage bucket
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .updateBucket('avatars', { public: false })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ id
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+A unique identifier for the bucket you are updating.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ options
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ public
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Policy permissions required:
+ - `buckets` permissions: `update`
+ - `objects` permissions: none
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update bucket
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .storage
+ .updateBucket('avatars', { public: false })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/subscribe.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/subscribe.mdx
new file mode 100644
index 00000000000..9aaabbd96ca
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/subscribe.mdx
@@ -0,0 +1,281 @@
+---
+id: subscribe
+title: "on().subscribe()"
+slug: subscribe
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Subscribe to realtime changes in your database.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('*')
+ .on('*', payload => {
+ console.log('Change received!', payload)
+ })
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ event
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>SupabaseEventTypes</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ callback
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+A callback that will handle the payload that is sent whenever your database changes.
+
+ </div>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime).
+- If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;`
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Listen to all database changes
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('*')
+ .on('*', payload => {
+ console.log('Change received!', payload)
+ })
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to a specific table
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('countries')
+ .on('*', payload => {
+ console.log('Change received!', payload)
+ })
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to inserts
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('countries')
+ .on('INSERT', payload => {
+ console.log('Change received!', payload)
+ })
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to updates
+
+By default, Supabase will send only the updated record. If you want to receive the previous values as well you can
+enable full replication for the table you are listening too:
+
+```sql
+alter table "your_table" replica identity full;
+```
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('countries')
+ .on('UPDATE', payload => {
+ console.log('Change received!', payload)
+ })
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to deletes
+
+By default, Supabase does not send deleted records. If you want to receive the deleted record you can
+enable full replication for the table you are listening too:
+
+```sql
+alter table "your_table" replica identity full;
+```
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('countries')
+ .on('DELETE', payload => {
+ console.log('Change received!', payload)
+ })
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to multiple events
+
+You can chain listeners if you want to listen to multiple events for each table.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('countries')
+ .on('INSERT', handleRecordInserted)
+ .on('DELETE', handleRecordDeleted)
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Listening to row level changes
+
+You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const mySubscription = supabase
+ .from('countries:id=eq.200')
+ .on('UPDATE', handleRecordUpdated)
+ .subscribe()
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/textsearch.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/textsearch.mdx
new file mode 100644
index 00000000000..0f9003fc94d
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/textsearch.mdx
@@ -0,0 +1,234 @@
+---
+id: textsearch
+title: ".textSearch()"
+slug: textsearch
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Finds all rows whose tsvector value on the stated `column` matches
+to_tsquery(`query`).
+
+
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ column
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The column to filter on.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ query
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The Postgres tsquery string to filter with.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ config
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The text search configuration to use.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Text search
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', `'fat' & 'cat'`, {
+ config: 'english'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Basic normalization
+
+Uses PostgreSQL's `plainto_tsquery` function.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', `'fat' & 'cat'`, {
+ type: 'plain',
+ config: 'english'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Full normalization
+
+Uses PostgreSQL's `phraseto_tsquery` function.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', `'fat' & 'cat'`, {
+ type: 'phrase',
+ config: 'english'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Websearch
+
+Uses PostgreSQL's `websearch_to_tsquery` function.
+This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used
+with advanced operators.
+
+- `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery.
+- `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery.
+- `OR`: the word “or” will be converted to the | operator.
+- `-`: a dash will be converted to the ! operator.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('quotes')
+ .select('catchphrase')
+ .textSearch('catchphrase', `'fat or cat'`, {
+ type: 'websearch',
+ config: 'english'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/update.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/update.mdx
new file mode 100644
index 00000000000..81427b8e0c2
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/update.mdx
@@ -0,0 +1,195 @@
+---
+id: update
+title: "Modify data: update()"
+slug: update
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs an UPDATE on the table.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Middle Earth' })
+ .match({ name: 'Auckland' })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ values
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>Partial</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The values to update.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ returning
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>minimal</code> | <code>representation</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+By default the updated record is returned. Set this to 'minimal' if you don't need this value.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Count algorithm to use to count rows in a table.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- `update()` should always be combined with [Filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to update.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Updating your data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .update({ name: 'Middle Earth' })
+ .match({ name: 'Auckland' })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Updating JSON data
+
+Postgres offers a
+[number of operators](https://www.postgresql.org/docs/current/functions-json.html)
+for working with JSON data. Right now it is only possible to update an entire JSON document,
+but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('users')
+ .update(`
+ address: {
+ street: 'Melrose Place',
+ postcode: 90210
+ }
+ `)
+ .eq('address->postcode', 90210)
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/upsert.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/upsert.mdx
new file mode 100644
index 00000000000..224d2194e8f
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/upsert.mdx
@@ -0,0 +1,281 @@
+---
+id: upsert
+title: "Upsert data: upsert()"
+slug: upsert
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Performs an UPSERT into the table.
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('messages')
+ .upsert({ id: 3, message: 'foo', username: 'supabot' })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+## Parameters
+
+
+<ul className="method-list-group">
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ values
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>Partial</code> | <code>array</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+The values to insert.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ __namedParameters
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>object</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+No description provided.
+
+ </div>
+
+<ul className="method-list-group">
+ <h5 class="method-list-title method-list-title-isChild expanded">Properties</h5>
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ returning
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>minimal</code> | <code>representation</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+By default the new record is returned. Set this to 'minimal' if you don't need this value.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ onConflict
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>undefined</code> | <code>string</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ignoreDuplicates
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>boolean</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Specifies if duplicate rows should be ignored and not inserted.
+
+ </div>
+
+</li>
+
+
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ count
+ </span>
+ <span className="method-list-item-label-badge required">
+ required
+ </span>
+ <span className="method-list-item-validation">
+ <code>null</code> | <code>exact</code> | <code>planned</code> | <code>estimated</code>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+
+Count algorithm to use to count rows in a table.
+
+ </div>
+
+</li>
+
+</ul>
+
+</li>
+
+</ul>
+
+
+## Notes
+
+- Primary keys should be included in the data payload in order for an update to work correctly.
+- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys.
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Upsert your data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('messages')
+ .upsert({ id: 3, message: 'foo', username: 'supabot' })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Bulk Upsert your data
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('messages')
+ .upsert([
+ { id: 3, message: 'foo', username: 'supabot' },
+ { id: 4, message: 'bar', username: 'supabot' }
+ ])
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Upserting into tables with constraints
+
+Running the following will cause supabase to upsert data into the `users` table.
+If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row
+based on the column passed into `onConflict`.
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error } = await supabase
+ .from('users')
+ .upsert({ username: 'supabot' }, { onConflict: 'username' })
+```
+
+
+</TabItem>
+
+</Tabs>
+
+### Return the exact number of rows
+
+
+
+<Tabs
+ defaultValue="js"
+ groupId="reference/supabase-js"
+ values={[{ label: 'JavaScript', value: 'js' }]}>
+
+<TabItem value="js">
+
+```js
+const { data, error, count } = await supabase
+ .from('users')
+ .upsert({
+ id: 3, message: 'foo',
+ username: 'supabot'
+ }, {
+ count: 'exact'
+ })
+```
+
+
+</TabItem>
+
+</Tabs>
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/using-filters.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/using-filters.mdx
new file mode 100644
index 00000000000..68e34cd1698
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/using-filters.mdx
@@ -0,0 +1,61 @@
+---
+id: using-filters
+title: "Using Filters"
+slug: using-filters
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Filters can be used on `select()`, `update()`, and `delete()` queries.
+
+If a Postgres function returns a table response, you can also apply filters.
+
+### Applying Filters
+
+You must apply your filters to the end of your query. For example:
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .eq('name', 'The Shire') // Correct
+
+const { data, error } = await supabase
+ .from('cities')
+ .eq('name', 'The Shire') // Incorrect
+ .select('name, country_id')
+```
+
+### Chaining
+
+Filters can be chained together to produce advanced queries. For example:
+
+```js
+const { data, error } = await supabase
+ .from('cities')
+ .select('name, country_id')
+ .gte('population', 1000)
+ .lt('population', 10000)
+```
+
+### Conditional Chaining
+
+Filters can be built up one step at a time and then executed. For example:
+
+```js
+const filterByName = null
+const filterPopLow = 1000
+const filterPopHigh = 10000
+
+let query = supabase
+ .from('cities')
+ .select('name, country_id')
+
+if (filterByName) { query = query.eq('name', filterByName) }
+if (filterPopLow) { query = query.gte('population', filterPopLow) }
+if (filterPopHigh) { query = query.lt('population', filterPopHigh) }
+
+const { data, error } = await query
+```
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_docs/version-1.0/using-modifiers.mdx b/apps/reference/_supabase_js_versioned_docs/version-1.0/using-modifiers.mdx
new file mode 100644
index 00000000000..e6d4aa4f8a0
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_docs/version-1.0/using-modifiers.mdx
@@ -0,0 +1,13 @@
+---
+id: using-modifiers
+title: "Using Modifiers"
+slug: using-modifiers
+custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Modifiers can be used on `select()` queries.
+
+If a Postgres function returns a table response, you can also apply modifiers to the `rpc()` function.
\ No newline at end of file
diff --git a/apps/reference/_supabase_js_versioned_sidebars/version-1.0-sidebars.json b/apps/reference/_supabase_js_versioned_sidebars/version-1.0-sidebars.json
new file mode 100644
index 00000000000..d71f452ac25
--- /dev/null
+++ b/apps/reference/_supabase_js_versioned_sidebars/version-1.0-sidebars.json
@@ -0,0 +1,132 @@
+{
+ "sidebar": [
+ {
+ "type": "category",
+ "label": "Getting Started",
+ "link": { "type": "doc", "id": "intro" },
+ "items": ["installing", "initializing", "generating-types"],
+ "collapsed": false
+ },
+ {
+ "type": "category",
+ "label": "Auth",
+ "items": [
+ "auth-signup",
+ "auth-signin",
+ "auth-signout",
+ "auth-session",
+ "auth-user",
+ "auth-update",
+ "auth-setauth",
+ "auth-onauthstatechange",
+ "auth-api-getuser",
+ "auth-api-resetpasswordforemail"
+ ],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Auth (Server Only)",
+ "items": [
+ "auth-api-listusers",
+ "auth-api-createuser",
+ "auth-api-deleteuser",
+ "auth-api-generatelink",
+ "auth-api-inviteuserbyemail",
+ "auth-api-sendmobileotp",
+ "auth-api-updateuserbyid"
+ ],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Functions",
+ "items": ["invoke"],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Database",
+ "items": ["select", "insert", "update", "upsert", "delete", "rpc"],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Realtime",
+ "items": [
+ "subscribe",
+ "removesubscription",
+ "removeallsubscriptions",
+ "getsubscriptions"
+ ],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Storage",
+ "items": [
+ "storage-createbucket",
+ "storage-getbucket",
+ "storage-listbuckets",
+ "storage-updatebucket",
+ "storage-deletebucket",
+ "storage-emptybucket",
+ "storage-from-upload",
+ "storage-from-download",
+ "storage-from-list",
+ "storage-from-update",
+ "storage-from-move",
+ "storage-from-copy",
+ "storage-from-remove",
+ "storage-from-createsignedurl",
+ "storage-from-createsignedurls",
+ "storage-from-getpublicurl"
+ ],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Modifiers",
+ "items": [
+ "using-modifiers",
+ "limit",
+ "order",
+ "range",
+ "single",
+ "maybesingle"
+ ],
+ "collapsed": true
+ },
+ {
+ "type": "category",
+ "label": "Filters",
+ "items": [
+ "using-filters",
+ "or",
+ "not",
+ "match",
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "like",
+ "ilike",
+ "is",
+ "in",
+ "contains",
+ "containedby",
+ "rangelt",
+ "rangegt",
+ "rangegte",
+ "rangelte",
+ "rangeadjacent",
+ "overlaps",
+ "textsearch",
+ "filter"
+ ],
+ "collapsed": true
+ }
+ ]
+}
diff --git a/apps/reference/_supabase_js_versions.json b/apps/reference/_supabase_js_versions.json
index fe51488c706..9a369ed18f4 100644
--- a/apps/reference/_supabase_js_versions.json
+++ b/apps/reference/_supabase_js_versions.json
@@ -1 +1,3 @@
-[]
+[
+ "1.0"
+]
diff --git a/apps/reference/nav/_referenceNavbar.js b/apps/reference/nav/_referenceNavbar.js
index 6df48a58481..d5150079e5b 100644
--- a/apps/reference/nav/_referenceNavbar.js
+++ b/apps/reference/nav/_referenceNavbar.js
@@ -63,7 +63,7 @@ const navbar = [
{
to: 'supabase-js',
position: 'left',
- label: 'JavaScript SDK',
+ label: 'JavaScript Library',
supabaseCustomNavBarRegex: '(^/supabase-js$|supabase-js/)',
},
{
@@ -111,7 +111,7 @@ const navbar = [
{
to: 'supabase-dart',
position: 'left',
- label: 'Supabase Dart SDK',
+ label: 'Dart Library',
supabaseCustomNavBarRegex: '(^/supabase-dart$|supabase-dart/)',
},
// {
diff --git a/apps/reference/nav/supabase_dart_sidebars.js b/apps/reference/nav/supabase_dart_sidebars.js
index 84355614df5..a6e736ccb4b 100644
--- a/apps/reference/nav/supabase_dart_sidebars.js
+++ b/apps/reference/nav/supabase_dart_sidebars.js
@@ -16,7 +16,108 @@ const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
- sidebar: ['intro', 'usage', 'release-notes'],
+ sidebar: [
+ {
+ type: 'category',
+ label: 'Supabase Dart',
+ link: { type: 'doc', id: 'intro' },
+ items: ['installing', 'initializing'],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Auth',
+ items: [
+ 'auth-signup',
+ 'auth-signin',
+ 'auth-signinwithprovider',
+ 'auth-signout',
+ 'auth-session',
+ 'auth-user',
+ 'auth-update',
+ 'auth-onauthstatechange',
+ 'reset-password-email',
+ ],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Functions',
+ items: ['invoke'],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Database',
+ items: ['select', 'insert', 'update', 'upsert', 'delete', 'rpc'],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Realtime',
+ items: ['subscribe', 'removesubscription', 'getsubscriptions', 'stream'],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Storage',
+ items: [
+ 'storage-createbucket',
+ 'storage-getbucket',
+ 'storage-listbuckets',
+ 'storage-updatebucket',
+ 'storage-deletebucket',
+ 'storage-emptybucket',
+ 'storage-from-upload',
+ 'storage-from-download',
+ 'storage-from-list',
+ 'storage-from-update',
+ 'storage-from-move',
+ 'storage-from-remove',
+ 'storage-from-createsignedurl',
+ 'storage-from-getpublicurl',
+ ],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Modifiers',
+ items: ['using-modifiers', 'limit', 'order', 'range', 'single'],
+ collapsed: true,
+ },
+ {
+ type: 'category',
+ label: 'Filters',
+ items: [
+ 'using-filters',
+ 'or',
+ 'not',
+ 'match',
+ 'eq',
+ 'neq',
+ 'gt',
+ 'gte',
+ 'lt',
+ 'lte',
+ 'like',
+ 'ilike',
+ 'is_',
+ 'in_',
+ 'contains',
+ 'containedby',
+ 'rangelt',
+ 'rangegt',
+ 'rangegte',
+ 'rangelte',
+ 'rangeadjacent',
+ 'overlaps',
+ 'textsearch',
+ 'filter',
+ ],
+ collapsed: true,
+ },
+ 'release-notes',
+ ],
}
module.exports = sidebars
diff --git a/apps/reference/package.json b/apps/reference/package.json
index c0282331cd7..4556cb85585 100644
--- a/apps/reference/package.json
+++ b/apps/reference/package.json
@@ -15,7 +15,7 @@
"cli:version": "docusaurus docs:version:_cli",
"gotrue:version": "docusaurus docs:version:_gotrue",
"storage:version": "docusaurus docs:version:_storage",
- "supabase-js:version": "docusaurus docs:version:_supabase-js",
+ "supabase-js:version": "docusaurus docs:version:_supabase_js",
"supabase-dart:version": "docusaurus docs:version:_supabase_dart"
},
"dependencies": {
diff --git a/web/package.json b/web/package.json
index ae31dbb666c..31b2ce44062 100644
--- a/web/package.json
+++ b/web/package.json
@@ -10,8 +10,10 @@
"traction": "node traction.js",
"gen:all": "npm run gen:supabase && npm run gen:dart && npm run gen:cli",
"gen:supabase": "ts-node ReferenceGenerator.ts -o docs/reference/javascript spec/supabase.yml",
+ "gen:supabase:new": "ts-node ReferenceGenerator.ts -o ../apps/reference/_supabase_js_versioned_docs/version-1.0 spec/supabase.yml",
"gen:cli": "ts-node ReferenceGenerator.ts -o docs/reference/cli spec/cli.yml",
"gen:dart": "ts-node ReferenceGenerator.ts -o docs/reference/dart spec/dart.yml",
+ "gen:dart:new": "ts-node ReferenceGenerator.ts -o ../apps/reference/_supabase_dart spec/dart.yml",
"gen:postgres": "ts-node ReferenceGenerator.ts -o docs/reference/postgres spec/postgres.yml"
},
"dependencies": {