diff --git a/src/Resolvers/SchemaRulesResolverPgSql.php b/src/Resolvers/SchemaRulesResolverPgSql.php index 02c736e..107bc2c 100644 --- a/src/Resolvers/SchemaRulesResolverPgSql.php +++ b/src/Resolvers/SchemaRulesResolverPgSql.php @@ -24,7 +24,7 @@ protected function getColumnsDefinitionsFromTable() ' SELECT column_name, data_type, character_maximum_length, is_nullable, column_default FROM INFORMATION_SCHEMA.COLUMNS - WHERE table_name = :table', + WHERE table_name = :table ORDER BY ordinal_position', ['table' => $tableName] ))->keyBy('column_name')->toArray();