Skip to content

'document_type_id' unknown data type: integer #26

@KES777

Description

@KES777

Please quote datatype while reporting.

The problem here was incorrect { data_type => ' integer' }. Please not space.

So it would be much better to understand what was wrong with integer:

@@ -376,7 +380,7 @@ sub to_graphql {
       my $fulltype = _apply_modifier(
         !$info->{is_nullable} && 'non_null',
         $rawtype
-          // die "'$column' unknown data type: @{[lc $info->{data_type}]}\n",
+          // die "'$column' unknown data type: '@{[lc $info->{data_type}]}'",
       );
       $fields{$column} = +{ type => $fulltype };
       $name2fk21{$name}->{$column} = 1 if $info->{is_foreign_key};

And please, remove \n from die/warns. Because of that new line, it is completely ambiguous from which module this error has come:

Can't load application from file "/home/kes/work/projects/plum/app/script/invoice": 'document_type_id' unknown data type:  integer

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions