# new OsduSchemaQueryBuilder()
Methods
# authority(authority)
Pass an optional string to search for a specific authority
- Accepts wildcards
*
Parameters:
Name | Type | Description |
---|---|---|
authority |
string | The OSDU authority with which to filter the search |
# build() → {string}
Construct the query request query string based on the attributes set
The query string that is passed to the schema query request
# entityType(entityType)
Pass an optional string to search for a specific entityType
- Accepts wildcards
*
Parameters:
Name | Type | Description |
---|---|---|
entityType |
string | The OSDU entityType with which to filter the search |
# latestVersion(latestVersion)
If True, only return the latest version
Parameters:
Name | Type | Description |
---|---|---|
latestVersion |
boolean | Whether to retrieve only the latest version |
# limit(limit)
Maximum number of schema records to return
Parameters:
Name | Type | Description |
---|---|---|
limit |
number | The integer number of records to return |
# offset(offset)
Number of records to skip for pagination
Parameters:
Name | Type | Description |
---|---|---|
offset |
number | The integer number of records to skip |
# schemaVersionMajor(schemaVersionMajor)
Pass an optional string to search for a specific schemaVersionMajor
- Accepts wildcards
*
Parameters:
Name | Type | Description |
---|---|---|
schemaVersionMajor |
string | number | The OSDU schemaVersionMajor with which to filter the search |
# schemaVersionMinor(schemaVersionMinor)
Pass an optional string to search for a specific schemaVersionMinor
- Accepts wildcards
*
Parameters:
Name | Type | Description |
---|---|---|
schemaVersionMinor |
string | number | The OSDU schemaVersionMinor with which to filter the search |
# scope(status)
The scope or schema visibility specification
- Accepts only valid status
INTERNAL
orSHARED
Parameters:
Name | Type | Description |
---|---|---|
status |
'INTERNAL' | 'SHARED' | The OSDU scope with which to filter the search |
# source(source)
Pass an optional string to search for a specific source
- Accepts wildcards
*
Parameters:
Name | Type | Description |
---|---|---|
source |
string | The OSDU source with which to filter the search |
# status(status)
The schema status specification
- Accepts only valid status
PUBLISHED
,DEVELOPMENT
, orOBSOLETE
Parameters:
Name | Type | Description |
---|---|---|
status |
'PUBLISHED' | 'DEVELOPMENT' | 'OBSOLETE' | The OSDU status with which to filter the search |