Skip to content

Releases: imperfect-fourth/eywa

v0.4.0

15 Sep 13:02
0a34789
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release
  • Fix selecting relationship fields in queries(#19)
  • Add unsafe actions(#16)

v0.3.2

17 Jun 09:15
c8bd16f
Compare
Choose a tag to compare
v0.3.2 Pre-release
Pre-release
  • add order_by query arg

v0.3.1

17 Jun 04:06
981a757
Compare
Choose a tag to compare
v0.3.1 Pre-release
Pre-release
  • change default generated file name from eywa_fields.go to eywa_generated.go
  • set generated file name with an optional --output-file flag

v0.3.0

13 Jun 09:12
bfddcea
Compare
Choose a tag to compare
v0.3.0 Pre-release
Pre-release

Introduce query variables for scalar types and json, jsonb types in update query(can only be used in Set for now)

type User struct {
    ID   int    `json:"id"`
    Name string `json:"name"`
    Age  *int   `json:"age"` //nullable type
}

...

age := 10
Update[User]().Where(Eq(User_IDField(1)).Set(
    User_NameVar("abcd"),
    User_AgeVar(&age)
).Select(User_Name).Exec(client)

generated query:

mutation update_user($User_Name: String!, $User_Age: Int) {
  update_user(where: {id: {_eq: 1}, _set: {name: $UserName}) {
    name
  }
}

Note how $User_Name is a required String! var, and $User_Name is a nullable Int var. This is inferred from the User struct definition(string, *int, etc)

generated variables:

{
  "User_Name": "abcd",
  "User_Age": 10
}

v0.2.1

11 Jun 11:39
Compare
Choose a tag to compare
v0.2.1 Pre-release
Pre-release

fix query generation for jsonb columns

v0.2.0

11 Jun 07:04
6656d29
Compare
Choose a tag to compare
v0.2.0 Pre-release
Pre-release
  • More type-safety with eywagen
  • Added ClientOpts for customizing http client
  • Reworked WhereExpr

v0.1.1

07 Jun 09:44
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release

fix module name

v0.1.0

07 Jun 07:53
Compare
Choose a tag to compare
v0.1.0 Pre-release
Pre-release

Here we go 🚀

This release supports select and update operations.