@steedos/service-object-graphql 3.0.0-beta.2 → 3.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-06-16 14:37:39
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2023-03-28 19:30:35
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2025-01-21 16:47:59
6
6
  * @Description: 获取对象主键字段类型,用于生成对象的graphql schema,如 id: ID!
7
7
  */
8
8
 
@@ -31,7 +31,8 @@ export function getPrimaryFieldType(objectConfig: SteedosObjectTypeConfig) {
31
31
  if (field.primary) {
32
32
  let fieldType = ''
33
33
  switch (field.type) {
34
- case 'text' || 'textarea':
34
+ case 'text':
35
+ case 'textarea':
35
36
  fieldType = 'String';
36
37
  break;
37
38
  case 'number':