mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
parent
92a3c453b7
commit
732038593f
@ -424,7 +424,7 @@ module.exports = {
|
||||
// Setup initial state with default attribute that should be displayed
|
||||
// but these attributes are not properly defined in the models.
|
||||
const initialState = {
|
||||
[model.primaryKey]: 'String!'
|
||||
[model.primaryKey]: 'ID!'
|
||||
};
|
||||
|
||||
const globalId = model.globalId;
|
||||
@ -509,7 +509,7 @@ module.exports = {
|
||||
if (_.isFunction(queries[type])) {
|
||||
if (type === 'singular') {
|
||||
Object.assign(acc.query, {
|
||||
[`${pluralize.singular(name)}(id: String!)`]: model.globalId
|
||||
[`${pluralize.singular(name)}(id: ID!)`]: model.globalId
|
||||
});
|
||||
} else {
|
||||
Object.assign(acc.query, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user