Feature Request: Ability to select fields to return and population depth on queries.

未关闭
#640 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
api, backend

调研方向

The issue names no files or entry points. Start by finding where collection entries are queried and returned through the REST API, and how the existing query parameters are parsed. Decide how field selection and population depth should be specified in the URL, which the issue leaves open, and confirm that with a maintainer first. Done means a /blogs-style request returns only the requested fields, with tests covering it.

由索引模型根据 Issue 内容生成。

描述

area: api enhancement priority: P2

A collection entry may have many fields not used in certain circumstances - for example a /blogs route will need the article name, the slug, and the except, but it doesn't need the full body content. The ability to select this by URL flags, rather than writing a custom route that uses the same collection.

主要语言
TypeScript
星标
1.8k
派生
219
平均合并
2 天 21 小时
30 天内合并 PR
67

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SonicJs-Org/sonicjs 的其他 Issue

查看 SonicJs-Org/sonicjs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。