profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/doug-martin/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Doug Martin doug-martin C2FO Fort Collins, CO Enjoys solving hard problems and learning new languages. Actively developing with Scala, Node and Golang. Husband to a great wife and VP of Engineering at C2FO.

doug-martin/goqu 1265

SQL builder and query library for golang

doug-martin/extender 65

`extender` is a library that helps in making chainable APIs, by creating a function that accepts different values and returns an object decorated with functions based on the type.

doug-martin/declare.js 40

Class system for node and browser

doug-martin/coddoc 10

documentation parser to create API documentation in both markdown and html format

doug-martin/grunt-link 8

Grunt task to handle the linking of local dependencies.

doug-martin/array-extended 7

Additional array extensions that can be used standalone or integrated with extended

doug-martin/date-extended 4

Additional date extensions that can be used standalone or integrated with extended

doug-martin/comb 3

Framework for node

doug-martin/extended 3

extended is a wrapper than sits on top of extende than allows you to combine multiple libraries into a single API.

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 3984447a6e015710fbc94ca33e44195cc600f0d0

chore(deps): Update @types/node to v14.17.17

view details

push time in a day

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 0bc85e16d0356a245099e6ae7545022de29da3b1

chore(deps): remove @types/node-fetch dev dependency

view details

push time in 2 days

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 2a6cfb1d589ab18eae9c5e22bccb99571c9fff31

chore(deps): upgrade apollo@v3 and nestjs/graphql@v9 packages

view details

push time in 2 days

PR opened doug-martin/nestjs-query

V0.30.0 rc
+37 -165

0 comment

11 changed files

pr created time in 2 days

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 3d581a09e37aebbcca5d7d5fe0d4714b15d11ece

chore(deps): upgrade eslint-config-airbnb-typescript@v14.0.0

view details

push time in 2 days

create barnchdoug-martin/nestjs-query

branch : upgrade-eslint-airbnb

created branch time in 2 days

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 6e93402986f95be2df755f762448756e99334a6d

Deploy website - based on 88d744a7eb7f6b516d4914fee4cedd4773de82a4

view details

push time in 6 days

push eventdoug-martin/nestjs-query

Peter Aguilar Jr

commit sha 88d744a7eb7f6b516d4914fee4cedd4773de82a4

Correct verbiage createdBy should be updatedBy.

view details

push time in 6 days

PR merged doug-martin/nestjs-query

Correct verbiage

createdBy should be updatedBy.

+2 -2

1 comment

1 changed file

aguilar8788

pr closed time in 6 days

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 0527d3ad6aca1eb8d3a7209939b225fbb2c9b526

chore: update to typescript 4.4.2

view details

push time in 6 days

delete branch doug-martin/nestjs-query

delete branch : typescript-4.4.2

delete time in 6 days

PullRequestReviewEvent

create barnchdoug-martin/nestjs-query

branch : v0.30.0-rc

created branch time in 7 days

create barnchdoug-martin/nestjs-query

branch : typescript-4.4.2

created branch time in 7 days

created tagdoug-martin/nestjs-query

tagv0.29.0

Easy CRUD for GraphQL.

created time in 11 days

release doug-martin/nestjs-query

v0.29.0

released time in 11 days

push eventdoug-martin/nestjs-query

Doug Martin

commit sha 66d21dcfacf878d8ff68195b141294d220936362

chore(release): publish v0.29.0

view details

push time in 11 days

PR closed doug-martin/nestjs-query

fix(query-graphql): pass original query in keyset pager strategy

Hi,

in LimitOffsetPagerStrategy, the original query is spreaded into the returned query:

createQuery(query: Query<DTO>, opts: OffsetPagingOpts, includeExtraNode: boolean): Query<DTO> {
    const { isBackward } = opts;
    const paging = { limit: opts.limit, offset: opts.offset };
    if (includeExtraNode) {
      // Add 1 to the limit so we will fetch an additional node
      paging.limit += 1;
      // if paging backwards remove one from the offset to check for a previous page.
      if (isBackward) {
        paging.offset -= 1;
      }
      if (paging.offset < 0) {
        // if the offset is < 0 it means we underflowed and that we cant have an extra page.
        paging.offset = 0;
        paging.limit = opts.limit;
      }
    }
    return { ...query, paging };
  }

This PR adds this behaviour to the KeysetPagerStrategy.

The motivation is that if you extend the QueryArgs, e.g.

@ArgsType()
  class SearchableQueryArgs
    extends QueryArgsType(DTOClass, opts)
    implements Searchable
  {
    @Field(() => GraphQLString, { nullable: true })
    @IsOptional()
    search?: string;
  }

the additional fields are passed to the service.

+23 -2

5 comments

4 changed files

steinroe

pr closed time in 11 days

push eventdoug-martin/nestjs-query

Maroje Macola

commit sha b6a8bd8037c6a382f00d7254d49ab60a53b91c12

Text improvement

view details

push time in 11 days

PullRequestReviewEvent
PullRequestReviewEvent

delete branch doug-martin/nestjs-query

delete branch : pr1255

delete time in 13 days

push eventdoug-martin/nestjs-query

steinroe

commit sha 07f9e7b78cccc788c772776a4ced336eec016164

fix(query-graphql): pass original query in keyset pager strategy

view details

steinroe

commit sha d81e5315cbc6e2d665256fd6dcfa09689cadd2b1

fix(query-graphql): adapt createFromPromise typings and add tests for passing additional query params

view details

Doug Martin

commit sha 348044f8509d8aef21e4a5f55b93bd28793b0fcc

feat(graphql): propagate correct query types throughout paging

view details

push time in 13 days

PR merged doug-martin/nestjs-query

feat(query-graphql): pass original query in keyset pager strategy
  • Changes from #1255
  • Update types to support custom query type.
+57 -28

3 comments

11 changed files

doug-martin

pr closed time in 13 days

pull request commentdoug-martin/nestjs-query

feat(query-typegoose): Adds the ability to use discriminators

@smolinari I'm not super familiar with mongoose/typegoose and the more advanced features, but I'll take a look.

smolinari

comment created time in 18 days

PR opened doug-martin/nestjs-query

feat(query-graphql): pass original query in keyset pager strategy
  • Changes from #1255
  • Update types to support custom query type.
+57 -28

0 comment

11 changed files

pr created time in 21 days

create barnchdoug-martin/nestjs-query

branch : pr1255

created branch time in 21 days