Skip to content

Commit

Permalink
Merge pull request #307 from supabase/or/release-1.1.0
Browse files Browse the repository at this point in the history
Update version number for release v1.1.0
  • Loading branch information
olirice authored Jan 24, 2023
2 parents 4b28d95 + 0f36d5f commit f49227a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pg_graphql"
version = "1.0.2"
version = "1.1.0"
edition = "2021"

[lib]
Expand Down
15 changes: 15 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## [1.0.0]
- Initial release

## [1.0.1]
- feature: Add support for Postgres 15

## [1.0.2]
- bugfix: Correct inconsistent treatment of null literals

## [1.1.0]
- feature: Add support for Views, Materialized Views, and Foreign Tables
- feature: Add support for filtering on `is null` and `is not null`
- feature: User configurable page size
- bugfix: Remove requirement for `insert` permission on every column for inserts to succeed
- bugfix: `hasNextPage` and `hasPreviousPage` during reverse pagination were backwards
1 change: 1 addition & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ nav:
- Example Schema: 'example_schema.md'
- Installation: 'installation.md'
- Contributing: 'contributing.md'
- Changelog: 'changelog.md'

theme:
name: 'material'
Expand Down
4 changes: 1 addition & 3 deletions src/transpile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ impl ConnectionBuilder {
.reverse()
.to_order_by_clause(&quoted_block_name);

let is_reverse_pagination = self.last.is_some();
let is_reverse_pagination = self.last.is_some() || self.before.is_some();

let order_by_clause_records = match is_reverse_pagination {
true => &order_by_clause_reversed,
Expand Down Expand Up @@ -815,8 +815,6 @@ impl ConnectionBuilder {
self.table.to_primary_key_tuple_clause(&quoted_block_name);
let pkey_tuple_clause_from_records = self.table.to_primary_key_tuple_clause("__records");

let is_reverse_pagination = self.last.is_some() || self.before.is_some();

let pagination_clause = {
let order_by = match is_reverse_pagination {
true => self.order_by.reverse(),
Expand Down

0 comments on commit f49227a

Please sign in to comment.