The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Blog/launch week 3/community day (#4135)
Thor 雷神 Schaeffd8e4c6b0eff7
diff --git a/web/spec/dart.yml b/web/spec/dart.ymlindex b34b9bead79..86880ddc94c 100644--- a/web/spec/dart.yml+++ b/web/spec/dart.yml@@ -425,6 +425,18 @@ pages:''').execute();```+ - name: Filtering with inner joins+ description: |+ 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":+ js: |+ ```js+ final res = await supabase+ .from('messages')+ .select('*, users!inner(*)')+ .eq('users.username', 'Jane')+ .execute();+ ```- name: Querying with count optiondescription: |You can get the number of rows by using the count option.diff --git a/web/spec/supabase.yml b/web/spec/supabase.ymlindex 31795a1edd4..7ddd6b6d092 100644--- a/web/spec/supabase.yml+++ b/web/spec/supabase.yml@@ -856,6 +856,17 @@ pages:purchaser:purchaser_id ( name )`)```+ - name: Filtering with inner joins+ description: |+ 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":+ js: |+ ```js+ const { data, error } = await supabase+ .from('messages')+ .select('*, users!inner(*)')+ .eq('users.username', 'Jane')+ ```- name: Querying with count optiondescription: |You can get the number of rows by using the count option.diff --git a/www/_blog/2021-11-26-supabase-launch-week-the-trilogy.mdx b/www/_blog/2021-11-26-supabase-launch-week-the-trilogy.mdxindex f40ef687111..c2c2023f558 100644--- a/www/_blog/2021-11-26-supabase-launch-week-the-trilogy.mdx+++ b/www/_blog/2021-11-26-supabase-launch-week-the-trilogy.mdx@@ -5,8 +5,8 @@ author: paul_copplestoneauthor_url: https://github.com/kiwicoppleauthor_image_url: https://github.com/kiwicopple.pngauthorURL: https://github.com/kiwicopple-image: launch-week-3/launch-week-3-og.jpg-thumb: launch-week-3/launch-week-3-thumb.jpg+image: launch-week-three/launch-week-three-og.jpg+thumb: launch-week-three/launch-week-three-thumb.jpgtags:- launch-weekdate: '2021-11-26'@@ -37,7 +37,9 @@ Last Launch Week we introduced the idea of Community Day - a day where we shine### Where?-Blog post coming soon. Follow our [Twitter](https://twitter.com/supabase) to get notified immediately.+Read the [blog post](https://supabase.com/blog/2021/11/29/community-day).++Tune in on [Twitter Spaces](https://twitter.com/i/spaces/1YqKDqYXQnLGV) at 7am PT!## Tuesday: Dashboard Surprisediff --git a/www/_blog/2021-11-28-postgrest-9.mdx b/www/_blog/2021-11-28-postgrest-9.mdxnew file mode 100644index 00000000000..7819633d562--- /dev/null+++ b/www/_blog/2021-11-28-postgrest-9.mdx@@ -0,0 +1,109 @@+---+title: 'PostgREST 9'+description: New features and updates in PostgREST version 9.+author: steve_chavez+author_url: https://github.com/steve-chavez+author_image_url: https://github.com/steve-chavez.png+authorURL: https://github.com/steve-chavez+image: launch-week-three/community-day/supabase-oss.jpg+thumb: launch-week-three/community-day/supabase-oss.jpg+tags:+ - launch-week+ - release-notes+ - tech+ - community+date: '2021-11-27'+toc_depth: 2+---+++PostgREST turns your PostgreSQL database automatically into a RESTful API. Today, PostgREST 9 was [released](https://postgrest.org/en/v9.0/releases/v9.0.0.html). Let's take a look at some of the new features.++## Inner Joins++PostgREST 9 brings a [much-requested feature](https://github.com/supabase/postgrest-js/issues/197): the ability to do `inner joins`.++Here's an example with `supabase-js`:++```js hideCopy+const { data, error } = await supabase+ .from('messages')+ .select('*, users!inner(*)')+ .eq('users.username', 'Jane')+```++With the new `!inner` keyword, you can now filter rows of the top-level table (`messages`) based on a filter (`eq`) of the embedded table (`users`).+This works across all Supabase client libraries and you can use it with any of the available operators (`gt`, `in`, etc.)++[Read more](https://postgrest.org/en/v9.0/releases/v9.0.0.html#resource-embedding-with-top-level-filtering).++## Functions with unnamed parameters++You can now make `POST` requests to functions with a single unnamed parameter. This is particularly useful for webhooks that send JSON payloads.++For example, imagine you were using Postmark as an email provider and you wanted to save email bounces using their [bounce webhook](https://postmarkapp.com/developer/webhooks/bounce-webhook).+Previously this wouldn't be possible with PostgREST, as every function required a named parameter.++As of PostgREST 9, this is possible.+Simply create a function inside your PostgreSQL database to receive the raw JSON:++```sql hideCopy+create function store_bounces(json)+returns json+language sql+as $$+ insert into bounces (webhook_id, email)+ values (+ ($1->>'ID')::bigint,+ ($1->>'Email')::text+ );++ select '{ "status": 200 }'::json;+$$;+```++And the webhook can send data directly to your database via an `rpc` call:++```bash hideCopy+POST https://<PROJECT_REF>.supabase.co/rest/v1/rpc/store_bounces HTTP/1.1+Content-Type: application/json++{+ "RecordType": "Bounce",+ "MessageStream": "outbound",+ "ID": 4323372036854775807,+ "Type": "HardBounce",+ "MessageID": "883953f4-6105-42a2-a16a-77a8eac79483",+ "Description": "The server was unable to deliver your message (ex: unknown user, mailbox not found).",+ "Details": "Test bounce details",+ "Email": "[email protected]",+ "From": "[email protected]",+ "BouncedAt": "2019-11-05T16:33:54.9070259Z"+}+```++[Read more](https://postgrest.org/en/v9.0/api.html#s-proc-single-unnamed).+++## PostgreSQL 14 compatibility++If you've ever done your own custom `auth` functions using PostgREST [HTTP Context](https://postgrest.org/en/v8.0/api.html#accessing-request-headers-cookies-and-jwt-claims),+note that a breaking change was necessary for PostgreSQL 14 Compatibility. You'll need to update them:+++| `From` | `To` |+| --- | --- |+| `current_setting('request.jwt.claim.custom-claim', true)` | `current_setting('request.jwt.claims', true)::json->>'custom-claim'` |+| `current_setting('request.header.custom-header', true)` | `current_setting('request.headers', true)::json->>'custom-header'` |+++If you only use Supabase default `auth` functions(`auth.email()`, `auth.uid()`, `auth.role()`), then no action is required because we have updated the functions to handle these changes transparently.++[Read more](https://postgrest.org/en/v9.0/releases/v9.0.0.html#postgresql-14-compatibility).++## Release notes++There are a lot more improvements released in PostgREST 9, including [support for Partitioned Tables](https://postgrest.org/en/v9.0/releases/v9.0.0.html#partitioned-tables),+[improved doc](https://postgrest.org/en/v9.0/releases/v9.0.0.html#documentation-improvements), and [bug fixes](https://postgrest.org/en/v9.0/releases/v9.0.0.html#bug-fixes).++You can see the full updates on the [PostgREST 9 release notes](https://postgrest.org/en/v9.0/releases/v9.0.0.html).\ No newline at end of filediff --git a/www/_blog/2021-11-29-community-day.mdx b/www/_blog/2021-11-29-community-day.mdxnew file mode 100644index 00000000000..ea690d26e7f--- /dev/null+++ b/www/_blog/2021-11-29-community-day.mdx@@ -0,0 +1,136 @@+---+title: 'Community Day'+description: Kicking off launch week by highlighting the communities around Supabase.+author: thor_schaeff+author_url: https://github.com/thorwebdev+author_image_url: https://github.com/thorwebdev.png+authorURL: https://github.com/thorwebdev+image: launch-week-three/community-day/supabase-oss.jpg+thumb: launch-week-three/community-day/supabase-oss.jpg+tags:+ - launch-week+ - community+date: '2021-11-29'+toc_depth: 2+---++Supabase combines existing open-source tools with our own open-source contributions to provide a delightful experience for developers. As part of this goal we hope to build a community of communities, bringing together developers from many different tools, as well as new developers looking to get involved with open source.++To kick off launch week we want to showcase some of the communities that make up the Supabase community, highlight some of their updates, and celebrate everyone who contributes their time to the Supabase mission.++So let's get cracking, we've got a lot to cover. 🚀++## Open Source Spotlight: Kong API Gateway++Supabase provides a whole bunch of features that are made up of a [collection of open-source tools](/docs/architecture). To orchestrate these different services and functionalities we use the [Kong API Gateway](https://github.com/Kong/kong).++As a user of our hosted offering you don't really need to know all this, but we love showcasing the amazing open-source tools that we work with, and so we've invited [Vik Gamov](https://twitter.com/gAmUssA) to give you a little intro to [Kong](https://github.com/Kong/kong):++<iframe+ className="w-full"+ width="700"+ height="350"+ src="https://www.youtube-nocookie.com/embed/6ptUrE4QRPQ"+ frameBorder="0"+ allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"+ allowfullscreen+></iframe>++## PostgreSQL 14 updates++++Every web developer knows the importance of choosing a suitable database for building modern apps.+Even though NoSQL, NewSQL, and other types of databases have received a great deal of buzz in the last few years,+relational database management systems (or RDBMS) are still relevant for several critical business use cases and will likely do so in the foreseeable future.+Among the many open-source relational databases available, [PostgreSQL](/docs/guides/database/introduction) is a popular choice among developers.+It was named [DBMS of the year in 2020](https://db-engines.com/en/blog_post/85) by+DBEnginges, and with every release of PostgreSQL new features are available making it easy for developers and administrators to run their apps.++[Gurjeet](https://twitter.com/0xGurjeet), one of our Postgres engineers, has written up a [blogpost](/blog/2021/11/28/whats-new-in-postgres-14) with the most important updates the every dev should know.++## PostgREST 9 updates++++We've had a lot of feedback on our Postgres APIs, and we've been hard at work with the [PostgREST team](https://github.com/orgs/PostgREST/people) to improve an already-incredible product.++Some new features include++- Inner Joins+- Functions with unnamed parameters+- PostgreSQL 14 compatibility++From tomorrow, every Supabase project will be on PostgREST 9 (including existing projects).++Read about some of the new features in PostgREST 9 [here](/blog/2021/11/28/postgrest-9).++## New community partner: GitGuardian++++[As you (hopefully) know](/docs/learn/auth-deep-dive/auth-deep-dive-jwts#jwts-in-supabase), keeping your service role key secret is a crucial part of securing your database. But we also know that it can be difficult to make sure it stays secret as your team grows and you don't accidentally leak it. To help you with this, [we've partnered with GitGuardian](https://blog.gitguardian.com/the-detector-of-the-month-november-2021/).++GitGuardian helps developers keep 250+ types of secrets out of source code. Their automated secrets detection and remediation solution secures every step of the development life cycle, helping you monitor your code for sensitive data. Read [their blog post](https://blog.gitguardian.com/the-detector-of-the-month-november-2021/) to learn more.++## Auth updates++++The beauty of building in the open is that the community can get involved in adding new OAuth providers, which is exactly what [@TheHarryET](https://twitter.com/TheHarryET) and [MonsterDeveloper](https://github.com/MonsterDeveloper) have been doing. Thanks to them you can now provide sign-in with [Slack](/docs/guides/auth/auth-slack) as well as [Spotify](/docs/guides/auth/auth-spotify) to your users, as well as use [MessageBird](/docs/guides/auth/auth-messagebird) for phone auth as an alternative to the existing [Twilio](/docs/guides/auth/auth-twilio) integration.++## SupaSquad updates++The [SupaSquad](/docs/handbook/supasquad) is an official Supabase advocate program where community members help build and manage the Supabase community.++Among many other awesome things, the SupaSquad has been absolutely on fire building [client libraries](/docs/reference/javascript/supabase-client) for all flavors of backends and environments.++++### Python client library updates++- New maintainers [`@Dreinon`](https://github.com/dreinon), [`@anand2312`](https://github.com/anand2312), and [`@leynier`](https://github.com/leynier). 💚+- `gotrue-py` rewritten and now at feature parity with `gotrue-js`.+- Postgrest-py now support synchronous operations as well instead of just synchronous operations in the past. Also at feature-parity with postgrest-js.+- Supabase-py is now Supabase (e.g. you do `pip3 install supabase` instead of `pip3 install supabase-py`).+- Storage is working for the py client library but it's yet to be extracted out as a standalone lib.++## New tutorials and integration guides++Our own [Jon Meyers](https://twitter.com/_dijonmusters) and the broader community have been busy creating awesome tutorials and integration guides to help everyone build even more amazing things with Supabase:++- Jon has added official guides for working with [Auth0](/docs/guides/integrations/auth0) and [Vercel](/docs/guides/integrations/vercel),+- [Jonny Summers-Muir](https://twitter.com/JSummersMuir) has been busy paving the way for [Prisma](/docs/guides/integrations/prisma), and+- [Aman Mittal](https://github.com/amandeepmittal) has hooked us up with a guide for [Draftbit](/docs/guides/integrations/draftbit)!++And below are some of the community one's we've come across recently. If you've created one yourself, please notify us by tagging us in a Tweet!++- [Supabase & Sveltekit - Build Twitter in 75 minutes](https://youtu.be/mPQyckogDYc)+- [Supabase Auth With Next.Js 12 Middleware](https://jitsu.com/blog/supabase-nextjs-middleware#what-were-going-to-build)+- [Vue 3 & Supabase | Workout Tracker App](https://www.youtube.com/watch?v=3tF0fGkd4ho)+- [Use Supabase Auth with Vue.js 3](https://vueschool.io/articles/vuejs-tutorials/use-supabase-auth-with-vue-js-3/)+- [Dynamic Jamstack with Stencil and Supabase](https://ionicframework.com/blog/dynamic-jamstack-with-stencil-and-supabase)++## Developer stories++Anytime we scroll through [madewithsupabase.com](https://www.madewithsupabase.com/) we're absolutely blown away by the awesome things y'all are building with Supabase.++So we reached out to some of our users, requesting a short video to learn more and we were overwhelmed with your gracious submissions. We've started a user stories playlist and we are so excited to see many more of these stories in the future. 💚++<iframe+ className="w-full"+ width="700"+ height="350"+ src="https://www.youtube-nocookie.com/embed/videoseries?list=PL5S4mPUpp4OuzQN-a_FY3OZQuYo4NmXvb"+ frameBorder="0"+ allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"+ allowfullscreen+></iframe>++And with that, we officially declare Launch Week as open 🥳 Check back [here](/blog) every day this week to see what new things we are shipping. We can't wait to share them with you 🚀++## Want even more Supabase in your life?++++We've got some stellar swag drops and behind the scenes footage for you on our new [TikTok page](https://www.tiktok.com/@supabase.com). Make sure to follow us there as we'll be giving away some swag randomly to 10 peeps who follow us during launch week!\ No newline at end of filediff --git a/www/public/images/blog/launch-week-three/community-day/client-libs.jpg b/www/public/images/blog/launch-week-three/community-day/client-libs.jpgnew file mode 100644index 00000000000..ebcc7f7f85fBinary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/client-libs.jpg differdiff --git a/www/public/images/blog/launch-week-three/community-day/gitguardian-supabase-partnership.jpeg b/www/public/images/blog/launch-week-three/community-day/gitguardian-supabase-partnership.jpegnew file mode 100644index 00000000000..f71e5ccd910Binary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/gitguardian-supabase-partnership.jpeg differdiff --git a/www/public/images/blog/launch-week-three/community-day/new-oauth-providers.jpg b/www/public/images/blog/launch-week-three/community-day/new-oauth-providers.jpgnew file mode 100644index 00000000000..95219ee34b2Binary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/new-oauth-providers.jpg differdiff --git a/www/public/images/blog/launch-week-three/community-day/postgrest-9-og.png b/www/public/images/blog/launch-week-three/community-day/postgrest-9-og.pngnew file mode 100644index 00000000000..09eaecf8f8eBinary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/postgrest-9-og.png differdiff --git a/www/public/images/blog/launch-week-three/community-day/postgrest-9-thumb.png b/www/public/images/blog/launch-week-three/community-day/postgrest-9-thumb.pngnew file mode 100644index 00000000000..b5008e00eb3Binary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/postgrest-9-thumb.png differdiff --git a/www/public/images/blog/launch-week-three/community-day/supabase-oss.jpg b/www/public/images/blog/launch-week-three/community-day/supabase-oss.jpgnew file mode 100644index 00000000000..5c00cb91094Binary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/supabase-oss.jpg differdiff --git a/www/public/images/blog/launch-week-three/community-day/tiktok.png b/www/public/images/blog/launch-week-three/community-day/tiktok.pngnew file mode 100644index 00000000000..bdc723f3edfBinary files /dev/null and b/www/public/images/blog/launch-week-three/community-day/tiktok.png differdiff --git a/www/public/images/blog/launch-week-3/launch-week-3-og.jpg b/www/public/images/blog/launch-week-three/launch-week-three-og.jpgsimilarity index 100%rename from www/public/images/blog/launch-week-3/launch-week-3-og.jpgrename to www/public/images/blog/launch-week-three/launch-week-three-og.jpgdiff --git a/www/public/images/blog/launch-week-3/launch-week-3-thumb.jpg b/www/public/images/blog/launch-week-three/launch-week-three-thumb.jpgsimilarity index 100%rename from www/public/images/blog/launch-week-3/launch-week-3-thumb.jpgrename to www/public/images/blog/launch-week-three/launch-week-three-thumb.jpg