Skip to content

Lorene: make use of linebreaks to improve code readability #2

Description

@eric-do

let queryString = `SELECT products.*, json_agg(

 let queryString = `SELECT products.*, json_agg(
      json_build_object(
        'feature', features.feature,
        'value', features.value
      )
    ) as features FROM products JOIN features ON products.id=features.product_id WHERE products.id=$1 group by products.id`;
let queryString = `
 SELECT products.*, json_agg(
    json_build_object(
      'feature', features.feature,
      'value', features.value
    )
  ) AS features 
  FROM products 
  JOIN features 
    ON products.id=features.product_id 
  WHERE products.id=$1 group by products.id`;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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