Skip to main content

groups

Creates, updates, deletes, gets or lists a groups resource.

Overview

Namegroups
TypeResource
Idvercel.microfrontends.groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
groupsarray
max_microfrontends_groups_per_teamnumber (wire: maxMicrofrontendsGroupsPerTeam)
max_microfrontends_per_groupnumber (wire: maxMicrofrontendsPerGroup)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectteam_id, slugGet the microfrontends group IDs for a team.
createinsertgroup_name, default_app, other_applicationsteam_id, slugCreates a microfrontends group and attaches multiple projects in a single request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Get the microfrontends group IDs for a team.

SELECT
groups,
max_microfrontends_groups_per_team,
max_microfrontends_per_group
FROM vercel.microfrontends.groups
WHERE team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

INSERT examples

Creates a microfrontends group and attaches multiple projects in a single request.

INSERT INTO vercel.microfrontends.groups (
group_name,
default_app,
other_applications,
team_id,
slug
)
SELECT
'{{ group_name }}' /* required */,
'{{ default_app }}' /* required */,
'{{ other_applications }}' /* required */,
'{{ team_id }}',
'{{ slug }}'
RETURNING
new_microfrontends_group
;