You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Thanks to @mwickett for bringing up this functionality on Slack.
Based on the discussion on how to generate a unique slug on a Type, I want to suggest a new field type for this, with a server-side implementation to generate a slug based on a field, which is unique across the Type (default) or across all Types.
type Blog implements Node {
id: ID!
title: String!
slug: Slug! @basedOn(field: 'title') @isUnique
}
The existing @isUnique tag would indicate a globally unique slug, without it, it would be unique for that Type by default.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Thanks to @mwickett for bringing up this functionality on Slack.
Based on the discussion on how to generate a unique slug on a Type, I want to suggest a new field type for this, with a server-side implementation to generate a slug based on a field, which is unique across the Type (default) or across all Types.
The existing
@isUnique
tag would indicate a globally unique slug, without it, it would be unique for that Type by default.The text was updated successfully, but these errors were encountered: