web-ridge / gqlgen-sqlboiler

This is a plugin for gqlgen to generate converts + filter queries and resolvers for sqlboiler
MIT License
74 stars 13 forks source link

Still fetch relation if it's soft-deleted #71

Closed RobinLindhout closed 7 months ago

RobinLindhout commented 7 months ago
    mods = append(mods, qm.Load(dm.LoggedHourRels.Activity, qm.WithDeleted()))
RobinLindhout commented 7 months ago
 filter: {
            search: $search
            where: {
              invoice: { id: { isNull: true } }
              status: $status
              linkedDate: $linkedDateFilter
              and: {
                activity: { id: { isNull: true } }
                or: { activity: { declarable: { equalTo: true } } }
              }
            }
          }
RobinLindhout commented 7 months ago

Also in where statement :)

RichardLindhout commented 7 months ago

Hi namesake, that's a coincidence! I'm investigating this :)