UrlRedirects
Returns a list of redirects for a shop.
Table-Specific Information
Select
The cmdlet uses the Shopify API to process WHERE clause conditions built with the following columns and operators:
- Id supports the '=,IN' comparison operators.
- Path supports the '=,!=' comparison operators.
- Target supports the '=,!=' comparison operators.
The cmdlet processes other filters client-side within the cmdlet.
For example, the following queries are processed server-side:
SELECT * FROM UrlRedirects WHERE Id='VALUE'
SELECT * FROM UrlRedirects WHERE Path='VALUE'
SELECT * FROM UrlRedirects WHERE Target='VALUE'
Insert
INSERT statements are mapped to the 'urlRedirectCreate' GraphQL mutation.
The following columns can be used to create a new record:
Path, Target
UPDATE
UPDATE statements are mapped to the 'urlRedirectUpdate' GraphQL mutation.
The following columns can be updated:
Path, Target
DELETE
DELETE statements are mapped to the 'urlRedirectDelete' GraphQL mutation.
You can delete entries by specifying the Id.
Columns
Name | Type | ReadOnly | References | Description |
Id [KEY] | String | True |
The ID of the URL redirect. | |
Path | String | False |
The old path to be redirected from. When the user visits this path, they will be redirected to the target location. | |
Target | String | False |
The target location where the user will be redirected to. |