Hello, how do I get struct in array ? please see my pic :
I need to get the struct’s params , like this : a.cms_post.title
My output is :
[
%TrangellCmsService.Cms.Db.Post{
__meta__: #Ecto.Schema.Metadata<:loaded, "cms_post">,
changelog: true,
changelog_category: "/ss/ppos",
cms_post_category: #Ecto.Association.NotLoaded<association :cms_post_category is not loaded>,
cms_post_category_id: "960c30f2-183e-4430-a96d-4f0fd41fe37b",
description: "test test test test test test tetststststss tskkkstest of test fo test of test more test more test for test for test tes",
discourse: true,
discourse_link: "/ss/ppos",
download_ext_link: "/ss/ppos",
group_acl: "admin",
id: 6,
inserted_at: ~N[2018-04-29 11:45:05.311436],
learn: true,
learn_category: "/ss/ppos",
pic_x1_link: "/ss/ppos",
pic_x2_link: "/ss/ppos",
pic_x3_link: "/ss/ppos",
plugin: true,
plugin_category: "/ss/ppos",
post_type: "free",
price: "30000",
screen_shot: false,
screen_shot_category: "/ss/ppos",
seo_alias_link: "7seo-why-seo",
seo_description: "for the test for test for test for test tete of test",
seo_language: "fa",
seo_language_link: "/ss/ppos",
seo_tag: "test,test,test,test",
seo_words: "test,test,test,test",
status: true,
title: "shahryar",
updated_at: ~N[2018-04-29 11:45:05.311884]
}
]