Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/schema/schema.graphql
Show First 20 Lines • Show All 803 Lines • ▼ Show 20 Lines | entries( | ||||
""" | """ | ||||
Filter by entry name | Filter by entry name | ||||
""" | """ | ||||
nameInclude: String | nameInclude: String | ||||
): DirectoryEntryConnection | ): DirectoryEntryConnection | ||||
} | } | ||||
""" | """ | ||||
An object with different content checksums | An object with different content hashes | ||||
""" | """ | ||||
type ContentChecksum { | type ContentHashes { | ||||
blake2s256: String | blake2s256: String | ||||
sha1: String | sha1: String | ||||
sha1_git: String | sha1_git: String | ||||
sha256: String | sha256: String | ||||
} | } | ||||
""" | """ | ||||
Object with different content data representations | Object with different content data representations | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | type Content implements SWHNode & Node { | ||||
id: ID! | id: ID! | ||||
""" | """ | ||||
SWHID of the content object | SWHID of the content object | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
""" | """ | ||||
Checksums for the content | Hashes for the content | ||||
""" | """ | ||||
checksum: ContentChecksum | hashes: ContentHashes | ||||
vlorentz: pluralize here too | |||||
""" | """ | ||||
Length of the content in bytes | Length of the content in bytes | ||||
""" | """ | ||||
length: Int | length: Int | ||||
""" | """ | ||||
Content status, visible or hidden | Content status, visible or hidden | ||||
▲ Show 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | content( | ||||
""" | """ | ||||
swhid: SWHID! | swhid: SWHID! | ||||
): Content | ): Content | ||||
""" | """ | ||||
Get the content by one or more hashes | Get the content by one or more hashes | ||||
Use multiple hashes for an accurate result | Use multiple hashes for an accurate result | ||||
""" | """ | ||||
contentByHash( | contentByHashes( | ||||
Done Inline Actionsand here vlorentz: and here | |||||
""" | """ | ||||
List of hashType:hashValue strings | List of hashType:hashValue strings | ||||
""" | """ | ||||
checksums: [ContentHash]! | hashes: [ContentHash]! | ||||
Not Done Inline Actionsand this too vlorentz: and this too | |||||
Done Inline ActionsI think you added this by mistake, here RHS is a list of hashes ie [ ContentHash ] jayeshv: I think you added this by mistake, here RHS is a list of hashes ie [ ContentHash ] | |||||
Not Done Inline Actionsindeed, my bad vlorentz: indeed, my bad | |||||
): Content | ): Content | ||||
""" | """ | ||||
Resolve the given SWHID to an object | Resolve the given SWHID to an object | ||||
""" | """ | ||||
resolveSWHID( | resolveSWHID( | ||||
""" | """ | ||||
SWHID to look for | SWHID to look for | ||||
Show All 24 Lines |
pluralize here too