Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/schema/schema.graphql
| Show First 20 Lines • Show All 516 Lines • ▼ Show 20 Lines | type RevisionEdge { | ||||
| cursor: String! | cursor: String! | ||||
| """ | """ | ||||
| Revision object | Revision object | ||||
| """ | """ | ||||
| node: Revision | node: Revision | ||||
| } | } | ||||
| """ | """ | ||||
vlorentz: the doc should explain why there are both an ISO8601 date and timestamp + offset. | |||||
| Object with Date information | |||||
| """ | |||||
Done Inline Actionswhy not just Date? vlorentz: why not just `Date`? | |||||
| type DateInfo { | |||||
| """ | |||||
| ISO-8601 encoded date | |||||
| """ | |||||
| date: DateTime | |||||
| """ | |||||
| Seconds in the timestamp | |||||
| """ | |||||
| seconds: Int | |||||
| """ | |||||
| Micoseconds in the timestamp | |||||
| """ | |||||
| microseconds: Int | |||||
| """ | |||||
| UTC offset | |||||
| """ | |||||
| offset: Int | |||||
| } | |||||
| """ | |||||
| A revision object | A revision object | ||||
| """ | """ | ||||
| type Revision implements MerkleNode & Node { | type Revision implements MerkleNode & Node { | ||||
| """ | """ | ||||
| Unique identifier | Unique identifier | ||||
| """ | """ | ||||
| id: ID! | id: ID! | ||||
| Show All 11 Lines | type Revision implements MerkleNode & Node { | ||||
| """ | """ | ||||
| author: Person | author: Person | ||||
| """ | """ | ||||
| """ | """ | ||||
| committer: Person | committer: Person | ||||
| """ | """ | ||||
| Revision date ISO-8601 encoded | Revision date | ||||
| """ | """ | ||||
| date: DateTime | date: DateInfo | ||||
| """ | """ | ||||
Done Inline ActionsI just noticed that you forgot to wrap the commiter_date field from the revision model. anlambert: I just noticed that you forgot to wrap the [commiter_date](https://forge.softwareheritage. | |||||
Done Inline ActionsThanks, added that. jayeshv: Thanks, added that. | |||||
| Type of the revision, eg: git/hg | Type of the revision, eg: git/hg | ||||
| """ | """ | ||||
| type: String | type: String | ||||
| """ | """ | ||||
| The unique directory object that revision points to | The unique directory object that revision points to | ||||
| """ | """ | ||||
| directory: Directory | directory: Directory | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | type Release implements MerkleNode & Node { | ||||
| """ | """ | ||||
| message: BinaryString | message: BinaryString | ||||
| """ | """ | ||||
| """ | """ | ||||
| author: Person | author: Person | ||||
| """ | """ | ||||
| Release date ISO-8601 encoded | Release date | ||||
| """ | """ | ||||
| date: DateTime | date: DateInfo | ||||
| """ | """ | ||||
| Type of release target | Type of release target | ||||
| """ | """ | ||||
| targetType: ReleaseTargetType | targetType: ReleaseTargetType | ||||
| """ | """ | ||||
| Release target object | Release target object | ||||
| ▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines | |||||
the doc should explain why there are both an ISO8601 date and timestamp + offset.