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
In the userSchema.js folder, Sanity displays in local host errors.
To fix the error you must add a "name" field and set it to whatever value: file modified here:
In the userSchema.js folder, Sanity displays in local host errors.
To fix the error you must add a "name" field and set it to whatever value: file modified here:
export const userSchema = {
name: 'users',
title: 'Users',
type: 'document',
fields: [
{
name: 'address',
title: 'Wallet Address',
type: 'string',
},
{
name: 'userName',
title: 'User Name',
type: 'string',
},
{
name: 'transactions',
title: 'Transactions',
type: 'array',
of: [
{
name: 'whatever name' <<<-------------------------------
type: 'reference',
to: [{ type: 'transactions' }],
},
],
},
],
}
Footer
The text was updated successfully, but these errors were encountered: