pg-order-by-related:按 PostGraphile 连接上的相关列排序

时间:2021-08-03 15:21:51
【文件属性】:
文件名称:pg-order-by-related:按 PostGraphile 连接上的相关列排序
文件大小:100KB
文件格式:ZIP
更新时间:2021-08-03 15:21:51
JavaScript @graphile-contrib/pg-order-by-related 这个 Graphile Engine 插件在连接的orderBy参数中添加了额外的枚举值,允许您按相关表中的列进行排序。 需要postgraphile@^4.3.1或graphile-build-pg@^4.3.1 例子: { # additional enum values exposed here :backhand_index_pointing_down: allPosts ( orderBy : PERSON_BY_AUTHOR_ID__CREATED_AT_ASC ) { nodes { headline personByAuthorId { id name about } } } } 支持一对一和多对一关系。 对于一对多关系, __COUN
【文件预览】:
pg-order-by-related-master
----index.js(16KB)
----package.json(940B)
----__tests__()
--------helpers.js(3KB)
--------p-schema.sql(2KB)
--------printSchemaOrdered.js(1009B)
--------integration()
--------fixtures()
--------p-data.sql(1KB)
----LICENSE(1KB)
----.eslintrc.js(319B)
----.gitignore(19B)
----.circleci()
--------config.yml(2KB)
----README.md(3KB)
----yarn.lock(178KB)
----scripts()
--------test(458B)
----.gitattributes(12B)
----.prettierrc.json(28B)

网友评论