return jsonb without field label - Mailing list pgsql-general

From john.tiger
Subject return jsonb without field label
Date
Msg-id 559736A8.4060104@gmail.com
Whole thread Raw
Responses Re: return jsonb without field label  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
have tables with :  create table mydocs (id serial primary key, data jsonb)

when I do a select data from mydocs it comes back as {data: {my jsonb
fields}} which then gets passed into a template - don't want to have to
keep using  <%= article.data.name  %>  instead of just data.name

probably easy but can't find out how - any suggestions?

ps: using new pg very lite orm library massive.js  (npm massive) - easy
to run direct sql commands - very nice.


pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Download PostgreSQL 9.5 Alpha
Next
From: Charles Clavadetscher
Date:
Subject: Re: Download PostgreSQL 9.5 Alpha